summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-10 22:36:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-11 09:05:06 +0100
commit24ea684eafde8f18d99e16dd591c89bc43f65cb4 (patch)
tree0e222ca6d8a1955c7c3edebfce6da7e190c5a140
parentf2da6ac0fab2f2a990437e272a14b0e4c25e1a27 (diff)
don't need these methods on some platforms
-rw-r--r--tools/inc/tools/fsys.hxx3
-rw-r--r--tools/source/fsys/dirent.cxx4
2 files changed, 7 insertions, 0 deletions
diff --git a/tools/inc/tools/fsys.hxx b/tools/inc/tools/fsys.hxx
index 9d8cc934699a..149c158ebdc1 100644
--- a/tools/inc/tools/fsys.hxx
+++ b/tools/inc/tools/fsys.hxx
@@ -251,9 +251,12 @@ private:
TOOLS_DLLPRIVATE FSysError ImpParseName( const ByteString& rIntiName,
FSysPathStyle eParser );
+#if defined(WNT)
TOOLS_DLLPRIVATE FSysError ImpParseOs2Name( const ByteString& rPfad,
FSysPathStyle eStyle );
+#else
TOOLS_DLLPRIVATE FSysError ImpParseUnixName( const ByteString& rPfad,
+#endif
FSysPathStyle eStyle );
TOOLS_DLLPRIVATE const DirEntry* ImpGetTopPtr() const;
TOOLS_DLLPRIVATE DirEntry* ImpGetTopPtr();
diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx
index a38d698b2f9b..5f1d74353169 100644
--- a/tools/source/fsys/dirent.cxx
+++ b/tools/source/fsys/dirent.cxx
@@ -331,6 +331,7 @@ ByteString ImplCutPath( const ByteString& rStr, sal_uInt16 nMax, char cAccDel )
return aCutPath;
}
+#if defined(WNT)
/*************************************************************************
|*
|* DirEntry::ImpParseOs2Name()
@@ -502,6 +503,7 @@ FSysError DirEntry::ImpParseOs2Name( const ByteString& rPfad, FSysPathStyle eSty
aName = rPfad;
return nErr;
}
+#endif
/*************************************************************************
|*
@@ -1726,6 +1728,7 @@ const DirEntry &DirEntry::operator[]( sal_uInt16 nParentLevel ) const
return *pRes;
}
+#if !defined(WNT)
/*************************************************************************
|*
|* DirEntry::ImpParseUnixName()
@@ -1841,6 +1844,7 @@ FSysError DirEntry::ImpParseUnixName( const ByteString& rPfad, FSysPathStyle eSt
return FSYS_ERR_OK;
}
+#endif
#define MAX_EXT_MAX 250
#define MAX_LEN_MAX 255