From d7f1f91b194da1cb96e66268ce7ef38602aa5754 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 3 Mar 2014 13:29:43 +0200 Subject: remove unused code in formula/vectortoken Remove these methods:. formula::DoubleVectorRefToken::GetRequestedArrayLength() formula::SingleVectorRefToken::GetRequestedArrayLength() formula::SingleVectorRefToken::SingleVectorRefToken( double const*, unsigned long, unsigned long) and optimise some accessor methods. Change-Id: I04f53593894a59dbefdd1cbc9505c6eb7cd8610b --- include/formula/vectortoken.hxx | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'include/formula') diff --git a/include/formula/vectortoken.hxx b/include/formula/vectortoken.hxx index 5fa596b57c00..ca858aecec34 100644 --- a/include/formula/vectortoken.hxx +++ b/include/formula/vectortoken.hxx @@ -56,14 +56,12 @@ class FORMULA_DLLPUBLIC SingleVectorRefToken : public FormulaToken size_t mnArrayLength; public: - SingleVectorRefToken( const double* pArray, size_t nReqLength, size_t nArrayLength ); SingleVectorRefToken( const VectorRefArray& rArray, size_t nReqLength, size_t nArrayLength ); virtual FormulaToken* Clone() const; - const VectorRefArray& GetArray() const; - size_t GetRequestedArrayLength() const; - size_t GetArrayLength() const; + inline const VectorRefArray& GetArray() const { return maArray; } + inline size_t GetArrayLength() const { return mnArrayLength; } }; /** @@ -90,12 +88,11 @@ public: virtual FormulaToken* Clone() const; - const std::vector& GetArrays() const; - size_t GetRequestedArrayLength() const; - size_t GetArrayLength() const; - size_t GetRefRowSize() const; - bool IsStartFixed() const; - bool IsEndFixed() const; + inline const std::vector& GetArrays() const { return maArrays; } + inline size_t GetArrayLength() const { return mnArrayLength; } + inline size_t GetRefRowSize() const { return mnRefRowSize; } + inline bool IsStartFixed() const { return mbStartFixed; } + inline bool IsEndFixed() const { return mbEndFixed; } }; } -- cgit