summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2015-08-16 20:00:58 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-08-17 07:20:31 +0000
commit7985e5245a57b284e370faccffcaab47ba137f3f (patch)
tree36d4345a7a8d8e64384f4e2c96abcc7b204ccb9f /basic
parentaade7198d72bc4ddb18f10729b89f0435e6ca197 (diff)
BASIC : SbiParser::pBasic is useless
Change-Id: I5aa041f78ea5685b996a6baf1d7bc22d5bd957ab Reviewed-on: https://gerrit.libreoffice.org/17782 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/parser.cxx1
-rw-r--r--basic/source/inc/parser.hxx1
-rw-r--r--basic/source/inc/scanner.hxx2
3 files changed, 1 insertions, 3 deletions
diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx
index e62273b1f366..b7af29db05ba 100644
--- a/basic/source/comp/parser.cxx
+++ b/basic/source/comp/parser.cxx
@@ -116,7 +116,6 @@ SbiParser::SbiParser( StarBASIC* pb, SbModule* pm )
aRtlSyms( aGblStrings, SbRTL, this ),
aGen( *pm, this, 1024 )
{
- pBasic = pb;
eCurExpr = SbSYMBOL;
eEndTok = NIL;
pProc = NULL;
diff --git a/basic/source/inc/parser.hxx b/basic/source/inc/parser.hxx
index 2245651894df..a1e44ef1dff5 100644
--- a/basic/source/inc/parser.hxx
+++ b/basic/source/inc/parser.hxx
@@ -68,7 +68,6 @@ public:
SbiSymPool aPublics; // module global
SbiSymPool aRtlSyms; // Runtime-Library
SbiCodeGen aGen; // Code-Generator
- StarBASIC* pBasic; // StarBASIC instance
SbiSymPool* pPool;
SbiExprType eCurExpr;
short nBase; // OPTION BASE-value
diff --git a/basic/source/inc/scanner.hxx b/basic/source/inc/scanner.hxx
index e499c25c7070..3207d5912e5e 100644
--- a/basic/source/inc/scanner.hxx
+++ b/basic/source/inc/scanner.hxx
@@ -35,6 +35,7 @@ class SbiScanner
OUString aLine;
const sal_Unicode* pLine;
const sal_Unicode* pSaveLine;
+ StarBASIC* pBasic; // instance for error callbacks
void scanAlphanumeric();
void scanGoto();
@@ -43,7 +44,6 @@ protected:
OUString aSym;
OUString aError;
SbxDataType eScanType;
- StarBASIC* pBasic; // instance for error callbacks
double nVal; // numeric value
sal_Int32 nCurCol1;
sal_Int32 nSavedCol1;