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/source | |
parent | 359b0ebc911b3bba30d0bb715a49ba335c413d28 (diff) |
loplugin: unused variables
aErrorText usage was commented out since 2000.
Change-Id: Ic4d81c2d48e59a36e2f4280ceb36ea8148b9dc9d
Diffstat (limited to 'basctl/source')
-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 |
3 files changed, 0 insertions, 19 deletions
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: #" ; |