summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNicola Povoleri <nicola.povoleri@libreitalia.it>2015-11-28 16:48:10 +0100
committerRiccardo Magliocchetti <riccardo.magliocchetti@gmail.com>2015-11-28 18:38:23 +0000
commitdf506d23a96a489934c948d5f87859ab5313e228 (patch)
tree21711b0a1837780c371a79a3b257886124eb8870 /starmath
parentdf8bbdcedb3b173682300e015286d07f7cfc69bb (diff)
Remove unused code
Found by scanbuild. Change-Id: Ie46c056327747bbcb3a9eb0890cf74be7179ea24 Reviewed-on: https://gerrit.libreoffice.org/20257 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Reviewed-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/edit.cxx7
1 files changed, 0 insertions, 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);