Kaydet (Commit) 1bda31ac authored tarafından Thomas Arnhold's avatar Thomas Arnhold

loplugin: unused variables

aErrorText usage was commented out since 2000.

Change-Id: Ic4d81c2d48e59a36e2f4280ceb36ea8148b9dc9d
üst 359b0ebc
...@@ -67,7 +67,6 @@ ...@@ -67,7 +67,6 @@
#define RID_STR_OPEN ( RID_BASICIDE_START + 20 ) #define RID_STR_OPEN ( RID_BASICIDE_START + 20 )
#define RID_STR_SAVE ( RID_BASICIDE_START + 21 ) #define RID_STR_SAVE ( RID_BASICIDE_START + 21 )
#define RID_STR_RUNTIMEERROR ( RID_BASICIDE_START + 22 ) #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_STDDIALOGNAME ( RID_BASICIDE_START + 24 )
#define RID_STR_STDMODULENAME ( RID_BASICIDE_START + 27 ) #define RID_STR_STDMODULENAME ( RID_BASICIDE_START + 27 )
......
...@@ -654,7 +654,6 @@ long ModulWindow::BasicErrorHdl( StarBASIC * pBasic ) ...@@ -654,7 +654,6 @@ long ModulWindow::BasicErrorHdl( StarBASIC * pBasic )
// ReturnWert: BOOL // ReturnWert: BOOL
// FALSE: cancel // FALSE: cancel
// TRUE: go on.... // TRUE: go on....
OUString aErrorText( pBasic->GetErrorText() );
sal_uInt16 nErrorLine = pBasic->GetLine() - 1; sal_uInt16 nErrorLine = pBasic->GetLine() - 1;
sal_uInt16 nErrCol1 = pBasic->GetCol1(); sal_uInt16 nErrCol1 = pBasic->GetCol1();
sal_uInt16 nErrCol2 = pBasic->GetCol2(); sal_uInt16 nErrCol2 = pBasic->GetCol2();
...@@ -664,17 +663,6 @@ long ModulWindow::BasicErrorHdl( StarBASIC * pBasic ) ...@@ -664,17 +663,6 @@ long ModulWindow::BasicErrorHdl( StarBASIC * pBasic )
AssertValidEditEngine(); AssertValidEditEngine();
GetEditView()->SetSelection( TextSelection( TextPaM( nErrorLine, nErrCol1 ), TextPaM( nErrorLine, nErrCol2 ) ) ); 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 // if other basic, the IDE should try to display the correct module
bool const bMarkError = pBasic == GetBasic(); bool const bMarkError = pBasic == GetBasic();
if ( bMarkError ) if ( bMarkError )
......
...@@ -1909,9 +1909,6 @@ sal_Bool WatchTreeListBox::EditingEntry( SvTreeListEntry* pEntry, Selection& ) ...@@ -1909,9 +1909,6 @@ sal_Bool WatchTreeListBox::EditingEntry( SvTreeListEntry* pEntry, Selection& )
sal_Bool WatchTreeListBox::EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewText ) sal_Bool WatchTreeListBox::EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewText )
{ {
WatchItem* pItem = (WatchItem*)pEntry->GetUserData();
String aVName( pItem->maName );
String aResult = comphelper::string::strip(rNewText, ' '); String aResult = comphelper::string::strip(rNewText, ' ');
sal_uInt16 nResultLen = aResult.Len(); sal_uInt16 nResultLen = aResult.Len();
......
...@@ -117,10 +117,6 @@ String RID_STR_CANNOTRUNMACRO ...@@ -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." ; 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 String RID_STR_RUNTIMEERROR
{ {
Text [ en-US ] = "Runtime Error: #" ; Text [ en-US ] = "Runtime Error: #" ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment