diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-03 01:07:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-03 01:07:08 +0100 |
commit | 1df73a8a61e3b90a65426265a8fa12e0302f2107 (patch) | |
tree | c985ab3b240ff8275515be57711fb61d4f0dc7b3 /rsc | |
parent | a0a3c24609fd50b0672be800043554e3094c84ee (diff) |
callcatcher: unused MacroParser
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/inc/rscpar.hxx | 1 | ||||
-rw-r--r-- | rsc/source/parser/rsclex.cxx | 34 |
2 files changed, 0 insertions, 35 deletions
diff --git a/rsc/inc/rscpar.hxx b/rsc/inc/rscpar.hxx index 69037ba8c027..77b037d841f5 100644 --- a/rsc/inc/rscpar.hxx +++ b/rsc/inc/rscpar.hxx @@ -88,7 +88,6 @@ public: /******************* F u n c t i o n *************************************/ void IncludeParser( RscFileInst * pFileInst ); ERRTYPE parser( RscFileInst * pFileInst ); -RscExpression * MacroParser( RscFileInst & rFileInst ); #endif // _RSCPAR_HXX diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx index 47be75549220..e9e4a0ebb9d0 100644 --- a/rsc/source/parser/rsclex.cxx +++ b/rsc/source/parser/rsclex.cxx @@ -413,38 +413,4 @@ ERRTYPE parser( RscFileInst * pFileInst ) return( aError ); } -RscExpression * MacroParser( RscFileInst & rFileInst ) -{ - ERRTYPE aError; - RscExpression * pExpression; - - InitParser( &rFileInst ); - - //Ziel auf macro_expression setzen - aKeyVal[ 0 ].nKeyWord = MACROTARGET; - bTargetDefined = sal_True; - aError = yyparse(); - - pExpression = pExp; - //EndParser() wuerde pExp loeschen - if( pExp ) - pExp = NULL; - - EndParser(); - - // yyparser gibt 0 zurueck, wenn erfolgreich - if( 0 == aError ) - aError.Clear(); - if( rFileInst.pTypCont->pEH->nErrors ) - aError = ERR_ERROR; - rFileInst.SetError( aError ); - - //im Fehlerfall pExpression loeschen - if( aError.IsError() && pExpression ){ - delete pExpression; - pExpression = NULL; - }; - return( pExpression ); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |