From ca0e8696ea0cd038d55d8101ff6f7303bb67a07e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 4 Mar 2014 09:45:34 +0200 Subject: remove unused code SmParser::Insert(rtl::OUString const&, int) Change-Id: Id14c393700135b511e520f75d19561667a7f5a51 --- starmath/inc/parse.hxx | 1 - starmath/source/parse.cxx | 10 ---------- 2 files changed, 11 deletions(-) (limited to 'starmath') diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx index f348c8ef5261..41071f26759c 100644 --- a/starmath/inc/parse.hxx +++ b/starmath/inc/parse.hxx @@ -199,7 +199,6 @@ protected: #endif void NextToken(); sal_Int32 GetTokenIndex() const { return m_nTokenIndex; } - void Insert(const OUString &rText, sal_Int32 nPos); void Replace( sal_Int32 nPos, sal_Int32 nLen, const OUString &rText ); inline bool TokenInGroup( sal_uLong nGroup ); diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index e1b9f6733d7c..d4c94f48db8f 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -353,16 +353,6 @@ bool SmParser::IsDelimiter( const OUString &rTxt, sal_Int32 nPos ) #endif -void SmParser::Insert(const OUString &rText, sal_Int32 nPos) -{ - m_aBufferString = m_aBufferString.replaceAt(nPos, 0, rText); - - sal_Int32 nLen = rText.getLength(); - m_nBufferIndex = m_nBufferIndex + nLen; - m_nTokenIndex = m_nTokenIndex + nLen; -} - - void SmParser::Replace( sal_Int32 nPos, sal_Int32 nLen, const OUString &rText ) { OSL_ENSURE( nPos + nLen <= m_aBufferString.getLength(), "argument mismatch" ); -- cgit