summaryrefslogtreecommitdiff
path: root/sal/qa
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-12-04 17:50:26 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-12-04 18:03:34 +0100
commit8a5961a7ee750ae2a2bcd73a4859486d00f00b6d (patch)
treed6bfd2a6c806141cbf9b2ff1d4396db2b5e65a3f /sal/qa
parentcce13e3f6a42c10232653dbd52088743f935c7d0 (diff)
remove unused variables and code
Change-Id: I4cd76fb5bb3187a9a25e9a73556c8ee3be1a5361
Diffstat (limited to 'sal/qa')
-rw-r--r--sal/qa/OStringBuffer/rtl_OStringBuffer.cxx1
-rw-r--r--sal/qa/osl/file/osl_File.cxx27
2 files changed, 3 insertions, 25 deletions
diff --git a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
index 0f205922941a..18fab173e701 100644
--- a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
+++ b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
@@ -137,6 +137,7 @@ namespace rtl_OStringBuffer
rtl::OStringBuffer b1;
b1.makeStringAndClear();
rtl::OStringBuffer b2(b1);
+ (void)b2;
}
void ctor_006()
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index 1b4fa25eae06..79a52fb4497a 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -426,7 +426,6 @@ inline void createTestDirectory( const ::rtl::OUString dirname )
inline void createTestDirectory( const ::rtl::OUString basename, const ::rtl::OUString dirname )
{
::rtl::OUString aBaseURL = basename.copy( 0 );
- ::rtl::OString aString;
concatURL( aBaseURL, dirname );
createTestDirectory( aBaseURL );
@@ -518,29 +517,8 @@ inline sal_Bool checkFile( const ::rtl::OUString & str, oslCheckMode nCheckMode
//check if the file exist
inline sal_Bool ifFileExist( const ::rtl::OUString & str )
{
- sal_Bool bCheckResult = sal_False;
-
-/*#ifdef WNT
- ::rtl::OUString aUStr = str.copy( 0 );
- if ( isURL( str ) )
- ::osl::FileBase::getSystemPathFromFileURL( str, aUStr );
-
- ::rtl::OString aString = ::rtl::OUStringToOString( aUStr, RTL_TEXTENCODING_ASCII_US );
- const char *path = aString.getStr();
- if (( _access( path, 0 ) ) != -1 )
- bCheckResult = sal_True;
-#else*/
- ::rtl::OString aString = ::rtl::OUStringToOString( str, RTL_TEXTENCODING_ASCII_US );
- // const char *path = aString.getStr();
::osl::File testFile( str );
- bCheckResult = ( osl::FileBase::E_None == testFile.open( osl_File_OpenFlag_Read ) );
- //if (bCheckResult)
- //printf("%s exist!\n", path);
- //else
- //printf("%s not exist!\n", path);
-//#endif
- return bCheckResult;
-
+ return ( osl::FileBase::E_None == testFile.open( osl_File_OpenFlag_Read ) );
}
//check if the file can be writen
@@ -788,7 +766,7 @@ namespace osl_FileBase
void getAbsoluteFileURL::getAbsoluteFileURL_002()
{
#if ( defined UNX ) //Link is not defined in Windows
- ::rtl::OUString aUStr_AbsURL, aUStr_LnkFileSys( aTempDirectorySys ), aUStr_SrcFileSys( aTempDirectorySys );
+ ::rtl::OUString aUStr_LnkFileSys( aTempDirectorySys ), aUStr_SrcFileSys( aTempDirectorySys );
( ( aUStr_LnkFileSys += aSlashURL ) += getCurrentPID() ) += ::rtl::OUString("/link.file");
( ( aUStr_SrcFileSys += aSlashURL ) += getCurrentPID() ) += ::rtl::OUString("/canonical.name");
@@ -5501,7 +5479,6 @@ namespace osl_Directory
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
//check the file name
- ::rtl::OUString strFilename;
sal_Bool bOk1 = sal_False;
sal_Bool bOk2 = sal_False;
sal_Bool bOk3 = sal_False;