summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-04 09:45:34 +0200
committerNoel Grandin <noel@peralex.com>2014-03-05 09:17:49 +0200
commitca0e8696ea0cd038d55d8101ff6f7303bb67a07e (patch)
tree5f9be0ff074e3e38da8c4a397585072db9f6714c /starmath
parent0654c95af100989c64b530daf852e089f7c2bda3 (diff)
remove unused code SmParser::Insert(rtl::OUString const&, int)
Change-Id: Id14c393700135b511e520f75d19561667a7f5a51
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/parse.hxx1
-rw-r--r--starmath/source/parse.cxx10
2 files changed, 0 insertions, 11 deletions
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" );