From 11f13f55b7e76811946979f363638597d882b88b Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Thu, 21 Apr 2016 17:31:18 +0900 Subject: [PATCH] starmath: Drop member variable set but not used Its usage was gone with 9adcd261054a0e99ae032be5e7428e28a6663975. Change-Id: Ibd322531365c2e0ccad85d553781611dfe96d54e Reviewed-on: https://gerrit.libreoffice.org/24277 Tested-by: Jenkins Reviewed-by: Takeshi Abe --- starmath/inc/parse.hxx | 5 +---- starmath/source/parse.cxx | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx index 7dbd3977fb5e..34194de3b55e 100644 --- a/starmath/inc/parse.hxx +++ b/starmath/inc/parse.hxx @@ -19,7 +19,7 @@ #ifndef INCLUDED_STARMATH_INC_PARSE_HXX #define INCLUDED_STARMATH_INC_PARSE_HXX -#include +#include #include #include #include @@ -36,7 +36,6 @@ class SmParser SmNodeStack m_aNodeStack; std::vector> m_aErrDescList; int m_nCurError; - LanguageType m_nLang; sal_Int32 m_nBufferIndex, m_nTokenIndex; sal_Int32 m_Row, @@ -91,8 +90,6 @@ class SmParser void DoGlyphSpecial(); // end of grammar - void SetLanguage( LanguageType nNewLang ) { m_nLang = nNewLang; } - void Error(SmParseError Error); void ClearUsedSymbols() { m_aUsedSymbols.clear(); } diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index b998f255bc10..955e3e112630 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -2344,7 +2344,6 @@ void SmParser::Error(SmParseError eError) SmParser::SmParser() : m_nCurError( 0 ) - , m_nLang( Application::GetSettings().GetUILanguageTag().getLanguageType() ) , m_nBufferIndex( 0 ) , m_nTokenIndex( 0 ) , m_Row( 0 ) @@ -2370,7 +2369,6 @@ SmNode *SmParser::Parse(const OUString &rBuffer) m_aNodeStack.clear(); - SetLanguage( Application::GetSettings().GetUILanguageTag().getLanguageType() ); NextToken(); DoTable(); @@ -2391,7 +2389,6 @@ SmNode *SmParser::ParseExpression(const OUString &rBuffer) m_aNodeStack.clear(); - SetLanguage( Application::GetSettings().GetUILanguageTag().getLanguageType() ); NextToken(); DoExpression();