summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/Util.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-04-16 23:45:16 +0000
committerMarc Laukien <marc@zeroc.com>2002-04-16 23:45:16 +0000
commitcb721b45d761ccb7fa3bb873e3d567dd665b1f9f (patch)
tree75bd19e8d32751ff178093f47b4ce87e83d4b6d0 /cpp/src/IcePatch/Util.cpp
parentalign with C++ - fixes for the thread pool (diff)
downloadice-cb721b45d761ccb7fa3bb873e3d567dd665b1f9f.tar.bz2
ice-cb721b45d761ccb7fa3bb873e3d567dd665b1f9f.tar.xz
ice-cb721b45d761ccb7fa3bb873e3d567dd665b1f9f.zip
IcePatch improvements; Ice.PrintAdapterReady timing fix
Diffstat (limited to 'cpp/src/IcePatch/Util.cpp')
-rw-r--r--cpp/src/IcePatch/Util.cpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/cpp/src/IcePatch/Util.cpp b/cpp/src/IcePatch/Util.cpp
index 473b36ed53d..4146a2b8345 100644
--- a/cpp/src/IcePatch/Util.cpp
+++ b/cpp/src/IcePatch/Util.cpp
@@ -176,21 +176,6 @@ IcePatch::removeRecursive(const string& path)
}
}
-void
-IcePatch::changeDirectory(const string& path)
-{
-#ifdef _WIN32
- if (_chdir(path.c_str()) == -1)
-#else
- if (chdir(path.c_str()) == -1)
-#endif
- {
- FileAccessException ex;
- ex.reason = "cannot change to directory `" + path + "': " + strerror(errno);
- throw ex;
- }
-}
-
StringSeq
IcePatch::readDirectory(const string& path)
{
@@ -316,12 +301,10 @@ IcePatch::getMD5(const string& path)
void
IcePatch::createMD5(const string& path)
{
- FileInfo info = getFileInfo(path, true);
- assert(info.type == FileTypeRegular);
-
//
// Read the original file.
//
+ FileInfo info = getFileInfo(path, true);
ifstream file(path.c_str(), ios::binary);
if (!file)
{
@@ -425,9 +408,6 @@ IcePatch::getBZ2(const string& path, Int pos, Int num)
void
IcePatch::createBZ2(const string& path)
{
- FileInfo info = getFileInfo(path, true);
- assert(info.type == FileTypeRegular);
-
//
// Read the original file in blocks and write a temporary BZ2
// file.