From df506d23a96a489934c948d5f87859ab5313e228 Mon Sep 17 00:00:00 2001 From: Nicola Povoleri Date: Sat, 28 Nov 2015 16:48:10 +0100 Subject: Remove unused code Found by scanbuild. Change-Id: Ie46c056327747bbcb3a9eb0890cf74be7179ea24 Reviewed-on: https://gerrit.libreoffice.org/20257 Tested-by: Jenkins Reviewed-by: jan iversen Reviewed-by: Riccardo Magliocchetti --- starmath/source/edit.cxx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index 203740a7b3fa..f156ee6762b8 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -1015,7 +1015,6 @@ void SmEditWindow::InsertText(const OUString& rText) ESelection aSelection = pEditView->GetSelection(); OUString aCurrentFormula = pEditView->GetEditEngine()->GetText(); sal_Int32 nStartIndex = 0; - sal_Int32 nEndIndex = 0; // get the start position (when we get a multi line formula) for (sal_Int32 nParaPos = 0; nParaPos < aSelection.nStartPara; nParaPos++) @@ -1023,12 +1022,6 @@ void SmEditWindow::InsertText(const OUString& rText) nStartIndex += aSelection.nStartPos; - // get the end position (when we get a multi line formula) - for (sal_Int32 nParaPos = 0; nParaPos < aSelection.nEndPara; nParaPos++) - nEndIndex = aCurrentFormula.indexOf("\n", nEndIndex) + 1; - - nEndIndex += aSelection.nEndPos; - // TODO: unify this function with the InsertCommand: The do the same thing for different // callers OUString string(rText); -- cgit