sc/source/ui/unoobj/tokenuno.cxx |    6 ------
 1 file changed, 6 deletions(-)

New commits:
commit 599b1711eab1adf05aab7ac9b977cff3bc4f1878
Author:     Eike Rathke <er...@redhat.com>
AuthorDate: Wed Aug 28 18:16:12 2024 +0200
Commit:     Eike Rathke <er...@redhat.com>
CommitDate: Wed Aug 28 21:10:13 2024 +0200

    Remove superfluous unused temporary ScCompiler instances
    
    Obsolete already since
    
        commit f304a7a14a4af4d3f46eab18d5494194028e61ef
        CommitDate: Tue May 5 09:30:39 2015 +0200
    
            loplugin:staticmethods
    
    Change-Id: Ibd84962b2e0394b9eba4829c13ab06b4a690b15b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172545
    Reviewed-by: Eike Rathke <er...@redhat.com>
    Tested-by: Jenkins

diff --git a/sc/source/ui/unoobj/tokenuno.cxx b/sc/source/ui/unoobj/tokenuno.cxx
index 51da3621cd4b..b8e4e133a113 100644
--- a/sc/source/ui/unoobj/tokenuno.cxx
+++ b/sc/source/ui/unoobj/tokenuno.cxx
@@ -209,8 +209,6 @@ void SAL_CALL ScFormulaParserObj::setPropertyValue(
         // CompileEnglish _before_ OpCodeMap!
         if (mxOpCodeMap && mbEnglish != bOldEnglish)
         {
-            ScDocument& rDoc = mpDocShell->GetDocument();
-            ScCompiler aCompiler( rDoc, ScAddress(), rDoc.GetGrammar());
             mxOpCodeMap = formula::FormulaCompiler::CreateOpCodeMap( 
maOpCodeMapping, mbEnglish);
         }
 
@@ -228,8 +226,6 @@ void SAL_CALL ScFormulaParserObj::setPropertyValue(
         // had been set for CONV_XL_OOX.
         if (mxOpCodeMap && mbEnglish != bOldEnglish)
         {
-            ScDocument& rDoc = mpDocShell->GetDocument();
-            ScCompiler aCompiler( rDoc, ScAddress(), rDoc.GetGrammar());
             mxOpCodeMap = formula::FormulaCompiler::CreateOpCodeMap( 
maOpCodeMapping, mbEnglish);
         }
     }
@@ -242,8 +238,6 @@ void SAL_CALL ScFormulaParserObj::setPropertyValue(
         if (!(aValue >>= maOpCodeMapping))
             throw lang::IllegalArgumentException();
 
-        ScDocument& rDoc = mpDocShell->GetDocument();
-        ScCompiler aCompiler(rDoc, ScAddress(), rDoc.GetGrammar());
         mxOpCodeMap = formula::FormulaCompiler::CreateOpCodeMap( 
maOpCodeMapping, mbEnglish);
 
     }

Reply via email to