summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/FileUtil.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2009-08-07 11:10:57 +0800
committerMatthew Newhook <matthew@zeroc.com>2009-08-07 11:10:57 +0800
commite47e08887c823824bfc36f102c065075737394b1 (patch)
treedcbb175cb6ba3204ac55a06d61d28c488227ab4f /cpp/src/IceUtil/FileUtil.cpp
parentRevert "4171 - Global namespace pollution" (diff)
downloadice-e47e08887c823824bfc36f102c065075737394b1.tar.bz2
ice-e47e08887c823824bfc36f102c065075737394b1.tar.xz
ice-e47e08887c823824bfc36f102c065075737394b1.zip
Revert "Changes for bug 3962 and 4714"
This reverts commit d38ad95e45c0083d602a43e6d77e6c1599f324fe.
Diffstat (limited to 'cpp/src/IceUtil/FileUtil.cpp')
-rw-r--r--cpp/src/IceUtil/FileUtil.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/cpp/src/IceUtil/FileUtil.cpp b/cpp/src/IceUtil/FileUtil.cpp
index 4486bbd0dd9..ac830069b52 100644
--- a/cpp/src/IceUtil/FileUtil.cpp
+++ b/cpp/src/IceUtil/FileUtil.cpp
@@ -8,7 +8,6 @@
// **********************************************************************
#include <IceUtil/FileUtil.h>
-#include <IceUtil/Unicode.h>
using namespace std;
@@ -52,44 +51,3 @@ IceUtilInternal::isAbsolutePath(const string& path)
return path[i] == '/';
#endif
}
-
-//
-// Detemine if a directory exists.
-//
-bool
-IceUtilInternal::directoryExists(const string& path)
-{
- IceUtilInternal::structstat st;
- if(IceUtilInternal::stat(path, &st) != 0 || !S_ISDIR(st.st_mode))
- {
- return false;
- }
- return true;
-}
-
-//
-// Determine if a regular file exists.
-//
-bool
-IceUtilInternal::fileExists(const string& path)
-{
- IceUtilInternal::structstat st;
- if(IceUtilInternal::stat(path, &st) != 0 || !S_ISREG(st.st_mode))
- {
- return false;
- }
- return true;
-}
-
-//
-// Stat
-//
-int
-IceUtilInternal::stat(const string& path, structstat* buffer)
-{
-#ifdef _WIN32
- return _wstat(IceUtil::stringToWstring(path).c_str(), buffer);
-#else
- return stat(path.c_str(), buffer);
-#endif
-}