diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-02-25 00:56:30 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-02-25 03:14:00 +0100 |
commit | 1bda31ac1374f18bda488c93c1420b6f208bd7d0 (patch) | |
tree | 905b8bfa4e4153792b1135e6512b2098a9342781 /basctl | |
parent | sal_Bool to bool (diff) | |
download | core-1bda31ac1374f18bda488c93c1420b6f208bd7d0.tar.gz core-1bda31ac1374f18bda488c93c1420b6f208bd7d0.zip |
loplugin: unused variables
aErrorText usage was commented out since 2000.
Change-Id: Ic4d81c2d48e59a36e2f4280ceb36ea8148b9dc9d
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/inc/basidesh.hrc | 1 | ||||
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 12 | ||||
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 3 | ||||
-rw-r--r-- | basctl/source/basicide/basidesh.src | 4 |
4 files changed, 0 insertions, 20 deletions
diff --git a/basctl/inc/basidesh.hrc b/basctl/inc/basidesh.hrc index 5c551b311083..990fe7a86630 100644 --- a/basctl/inc/basidesh.hrc +++ b/basctl/inc/basidesh.hrc @@ -67,7 +67,6 @@ #define RID_STR_OPEN ( RID_BASICIDE_START + 20 ) #define RID_STR_SAVE ( RID_BASICIDE_START + 21 ) #define RID_STR_RUNTIMEERROR ( RID_BASICIDE_START + 22 ) -#define RID_STR_COMPILEERROR ( RID_BASICIDE_START + 23 ) #define RID_STR_STDDIALOGNAME ( RID_BASICIDE_START + 24 ) #define RID_STR_STDMODULENAME ( RID_BASICIDE_START + 27 ) diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index 7bcc2dccd359..72d594d82000 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -654,7 +654,6 @@ long ModulWindow::BasicErrorHdl( StarBASIC * pBasic ) // ReturnWert: BOOL // FALSE: cancel // TRUE: go on.... - OUString aErrorText( pBasic->GetErrorText() ); sal_uInt16 nErrorLine = pBasic->GetLine() - 1; sal_uInt16 nErrCol1 = pBasic->GetCol1(); sal_uInt16 nErrCol2 = pBasic->GetCol2(); @@ -664,17 +663,6 @@ long ModulWindow::BasicErrorHdl( StarBASIC * pBasic ) AssertValidEditEngine(); GetEditView()->SetSelection( TextSelection( TextPaM( nErrorLine, nErrCol1 ), TextPaM( nErrorLine, nErrCol2 ) ) ); - OUStringBuffer aErrorTextPrefixBuf; - if( pBasic->IsCompilerError() ) - aErrorTextPrefixBuf.append(IDE_RESSTR(RID_STR_COMPILEERROR)); - else - { - aErrorTextPrefixBuf.append(IDE_RESSTR(RID_STR_RUNTIMEERROR)); - aErrorTextPrefixBuf.append(StarBASIC::GetVBErrorCode(pBasic->GetErrorCode())); - aErrorTextPrefixBuf.append(' '); - rLayout.UpdateDebug(false); - } - OUString aErrorTextPrefix(aErrorTextPrefixBuf.makeStringAndClear()); // if other basic, the IDE should try to display the correct module bool const bMarkError = pBasic == GetBasic(); if ( bMarkError ) diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index b812527e7801..ca6318fc0a23 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -1909,9 +1909,6 @@ sal_Bool WatchTreeListBox::EditingEntry( SvTreeListEntry* pEntry, Selection& ) sal_Bool WatchTreeListBox::EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewText ) { - WatchItem* pItem = (WatchItem*)pEntry->GetUserData(); - String aVName( pItem->maName ); - String aResult = comphelper::string::strip(rNewText, ' '); sal_uInt16 nResultLen = aResult.Len(); diff --git a/basctl/source/basicide/basidesh.src b/basctl/source/basicide/basidesh.src index 22f1d8c8cb36..018a2e47c063 100644 --- a/basctl/source/basicide/basidesh.src +++ b/basctl/source/basicide/basidesh.src @@ -117,10 +117,6 @@ String RID_STR_CANNOTRUNMACRO { Text [ en-US ] = "For security reasons, you cannot run this macro.\n\nFor more information, check the security settings." ; }; -String RID_STR_COMPILEERROR -{ - Text [ en-US ] = "Compile Error: " ; -}; String RID_STR_RUNTIMEERROR { Text [ en-US ] = "Runtime Error: #" ; |