summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-21 22:56:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-22 09:39:17 +0100
commit6ccc829c54a6a26442745e46e1d560994f5b0b45 (patch)
treece84f363c8649895d05e370c20a092f3a7833546 /tools
parentf491382a868c3589bceece0ef34cf80d493f7c72 (diff)
remove defines that don't do anything
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/fsys.hxx9
-rw-r--r--tools/source/fsys/comdep.hxx2
-rw-r--r--tools/source/fsys/dirent.cxx11
3 files changed, 4 insertions, 18 deletions
diff --git a/tools/inc/tools/fsys.hxx b/tools/inc/tools/fsys.hxx
index 632b4c175c55..2aae76db878d 100644
--- a/tools/inc/tools/fsys.hxx
+++ b/tools/inc/tools/fsys.hxx
@@ -147,15 +147,6 @@ enum FSysExact
};
// ------------
-// - Char-Set -
-// ------------
-
-// Was different for WIN, no longer needed...
-#define GUI2FSYS(s) s
-#define FSYS2GUI(s) s
-
-
-// ------------
// - FileStat -
// ------------
diff --git a/tools/source/fsys/comdep.hxx b/tools/source/fsys/comdep.hxx
index e528d3b6fdfd..efa9e1a5e660 100644
--- a/tools/source/fsys/comdep.hxx
+++ b/tools/source/fsys/comdep.hxx
@@ -72,7 +72,7 @@ struct DirReader_Impl
: pDir( &rDir ),
pDosEntry( 0 ),
pParent( 0 ),
- aPath( GUI2FSYS(rDir.GetFull()) ),
+ aPath(rDir.GetFull()),
bReady ( sal_False ),
bInUse( sal_False )
{
diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx
index 796d746d27af..aef46ce40dfd 100644
--- a/tools/source/fsys/dirent.cxx
+++ b/tools/source/fsys/dirent.cxx
@@ -909,7 +909,6 @@ sal_Bool DirEntry::First()
#else
ByteString aPathName(aUniPathName, gsl_getSystemTextEncoding());
#endif
- aPathName = GUI2FSYS( aPathName );
DIR *pDir = opendir( (char*) aPathName.GetBuffer() );
if ( pDir )
@@ -923,7 +922,7 @@ sal_Bool DirEntry::First()
pEntry;
pEntry = readdir( pDir ) )
{
- ByteString aFound( FSYS2GUI( ByteString( pEntry->d_name ) ) );
+ ByteString aFound(pEntry->d_name);
if ( aWildeKarte.Matches( String(CMP_LOWER( aFound ), osl_getThreadTextEncoding())))
{
aName = aFound;
@@ -1868,7 +1867,6 @@ sal_Bool DirEntry::MakeDir( sal_Bool bSloppy ) const
FSysRedirector::DoRedirect( aDirName );
#endif
ByteString bDirName( aDirName, osl_getThreadTextEncoding() );
- bDirName = GUI2FSYS( bDirName );
#ifdef WIN32
SetLastError(0);
@@ -1906,8 +1904,8 @@ FSysError DirEntry::CopyTo( const DirEntry& rDest, FSysAction nActions ) const
{
// Hardlink anlegen
HACK(redirection missing)
- ByteString aThis(GUI2FSYS(GetFull()), osl_getThreadTextEncoding());
- ByteString aDest(GUI2FSYS(rDest.GetFull()), osl_getThreadTextEncoding());
+ ByteString aThis(GetFull(), osl_getThreadTextEncoding());
+ ByteString aDest(rDest.GetFull(), osl_getThreadTextEncoding());
if (link( aThis.GetBuffer(), aDest.GetBuffer() ) == -1)
return Sys2SolarError_Impl( errno );
else
@@ -1965,8 +1963,6 @@ FSysError DirEntry::MoveTo( const DirEntry& rNewName ) const
ByteString bFrom(aFrom, osl_getThreadTextEncoding());
ByteString bTo(aTo, osl_getThreadTextEncoding());
- bFrom = GUI2FSYS(bFrom);
- bTo = GUI2FSYS(bTo);
#ifdef WNT
// MoveTo nun atomar
@@ -2100,7 +2096,6 @@ FSysError DirEntry::Kill( FSysAction nActions ) const
FSysRedirector::DoRedirect( aTmpName );
#endif
ByteString bTmpName( aTmpName, osl_getThreadTextEncoding());
- bTmpName = GUI2FSYS(bTmpName);
char *pName = new char[bTmpName.Len()+2];
strcpy( pName, bTmpName.GetBuffer() );