summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-02-25 02:17:44 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-02-25 03:14:00 +0100
commit405caad685edd0ba914789bda01b5dc9b3030773 (patch)
treee5a16d9474717f67cfd029e1ed7b9ecdb0e738ab /basic
parent800376357fd1fc0594ba3dc5e0579fd163a3039a (diff)
loplugin: unused variables
Change-Id: I46a748bf2c54d15c0f5718901197f3b4c34b82bf
Diffstat (limited to 'basic')
-rw-r--r--basic/source/basmgr/basicmanagerrepository.cxx2
-rw-r--r--basic/source/basmgr/basmgr.cxx4
-rw-r--r--basic/source/classes/eventatt.cxx1
-rw-r--r--basic/source/runtime/methods.cxx1
-rw-r--r--basic/source/sbx/sbxscan.cxx2
5 files changed, 1 insertions, 9 deletions
diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx
index 4f8fd9e766b3..59e6ee2da2b9 100644
--- a/basic/source/basmgr/basicmanagerrepository.cxx
+++ b/basic/source/basmgr/basicmanagerrepository.cxx
@@ -293,8 +293,6 @@ namespace basic
{
aPathCFG.SetBasicPath(OUString("$(prog)"));
}
- // soffice.new search only in user dir => first dir
- OUString aAppFirstBasicDir = aAppBasicDir.getToken(1, ';');
// Create basic and load it
// AppBasicDir is now a PATH
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index 961b5ed7fa97..046376ceae99 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -706,8 +706,6 @@ void BasicManager::SetLibraryContainerInfo( const LibraryContainerInfo& rInfo )
mpImpl->maContainerInfo = rInfo;
uno::Reference< script::XLibraryContainer > xScriptCont( mpImpl->maContainerInfo.mxScriptCont.get() );
- StarBASIC* pStdLib = GetStdLib();
- OUString aLibName = pStdLib->GetName();
if( xScriptCont.is() )
{
// Register listener for lib container
@@ -1367,7 +1365,7 @@ sal_Bool BasicManager::RemoveLib( sal_uInt16 nLib, sal_Bool bDelBasicFromStorage
xStorage->FillInfoList( &aInfoList );
if ( aInfoList.empty() )
{
- OUString aName_( xStorage->GetName() );
+ //OUString aName_( xStorage->GetName() );
xStorage.Clear();
//*** TODO: Replace if still necessary
//SfxContentHelper::Kill( aName );
diff --git a/basic/source/classes/eventatt.cxx b/basic/source/classes/eventatt.cxx
index 7eb79f3650f0..da7d5d4d613b 100644
--- a/basic/source/classes/eventatt.cxx
+++ b/basic/source/classes/eventatt.cxx
@@ -215,7 +215,6 @@ void BasicScriptListener_Impl::firing_impl( const ScriptEvent& aScriptEvent, Any
aLibName = aFullLibName.copy( nIndex + 1 );
}
- OUString aModul = aMacro.getToken( (sal_Int32)0, (sal_Unicode)'.', nLast );
aMacro = aMacro.copy( nLast );
}
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index af2f02142050..5f4ea93e6212 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -4162,7 +4162,6 @@ RTLFUNC(StrConv)
}
else if ( (nConversion & 0x80) == 128 ) // vbFromUnicode
{
- OUString aOUStr(aNewStr);
// there is no concept about default codepage in unix. so it is incorrectly in unix
OString aOStr = OUStringToOString(aNewStr,osl_getThreadTextEncoding());
const sal_Char* pChar = aOStr.getStr();
diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx
index d6e55d353a03..f9784e442f65 100644
--- a/basic/source/sbx/sbxscan.cxx
+++ b/basic/source/sbx/sbxscan.cxx
@@ -410,8 +410,6 @@ bool ImpConvStringExt( OUString& rSrc, SbxDataType eTargetType )
case SbxDOUBLE:
case SbxCURRENCY:
{
- OString aBStr( OUStringToOString( rSrc, RTL_TEXTENCODING_ASCII_US ) );
-
sal_Unicode cDecimalSep, cThousandSep;
ImpGetIntntlSep( cDecimalSep, cThousandSep );
aNewString = rSrc;