summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2Lib/Util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePatch2Lib/Util.cpp')
-rw-r--r--cpp/src/IcePatch2Lib/Util.cpp70
1 files changed, 0 insertions, 70 deletions
diff --git a/cpp/src/IcePatch2Lib/Util.cpp b/cpp/src/IcePatch2Lib/Util.cpp
index 1ce932d977c..a1df441be72 100644
--- a/cpp/src/IcePatch2Lib/Util.cpp
+++ b/cpp/src/IcePatch2Lib/Util.cpp
@@ -81,12 +81,6 @@ IcePatch2Internal::toLargeFileInfo(const FileInfo& info)
}
bool
-IcePatch2Internal::writeFileInfo(FILE* fp, const FileInfo& info)
-{
- return writeFileInfo(fp, toLargeFileInfo(info));
-}
-
-bool
IcePatch2Internal::writeFileInfo(FILE* fp, const LargeFileInfo& info)
{
int rc = fprintf(fp, "%s\t%s\t%" ICE_INT64_FORMAT "d\t%d\n",
@@ -98,18 +92,6 @@ IcePatch2Internal::writeFileInfo(FILE* fp, const LargeFileInfo& info)
}
bool
-IcePatch2Internal::readFileInfo(FILE* fp, FileInfo& info)
-{
- LargeFileInfo largeInfo;
- bool retval = readFileInfo(fp, largeInfo);
- if(retval)
- {
- info = toFileInfo(largeInfo);
- }
- return retval;
-}
-
-bool
IcePatch2Internal::readFileInfo(FILE* fp, LargeFileInfo& info)
{
string data;
@@ -746,12 +728,6 @@ IcePatch2Internal::decompressFile(const string& pa)
fclose(fp);
}
-void
-IcePatch2Internal::setFileFlags(const string& pa, const FileInfo& info)
-{
- setFileFlags(pa, toLargeFileInfo(info));
-}
-
#ifndef _WIN32
void
IcePatch2Internal::setFileFlags(const string& pa, const LargeFileInfo& info)
@@ -1044,16 +1020,6 @@ getFileInfoSeqInternal(const string& basePath, const string& relPath, int compre
}
bool
-IcePatch2Internal::getFileInfoSeq(const string& basePath, int compress, GetFileInfoSeqCB* cb, FileInfoSeq& infoSeq)
-{
- LargeFileInfoSeq largeInfoSeq;
- bool retval = getFileInfoSeq(basePath, compress, cb, largeInfoSeq);
- infoSeq.resize(largeInfoSeq.size());
- transform(largeInfoSeq.begin(), largeInfoSeq.end(), infoSeq.begin(), toFileInfo);
- return retval;
-}
-
-bool
IcePatch2Internal::getFileInfoSeq(const string& basePath, int compress, GetFileInfoSeqCB* cb,
LargeFileInfoSeq& infoSeq)
{
@@ -1062,17 +1028,6 @@ IcePatch2Internal::getFileInfoSeq(const string& basePath, int compress, GetFileI
bool
IcePatch2Internal::getFileInfoSeqSubDir(const string& basePa, const string& relPa, int compress, GetFileInfoSeqCB* cb,
- FileInfoSeq& infoSeq)
-{
- LargeFileInfoSeq largeInfoSeq;
- bool retval = getFileInfoSeqSubDir(basePa, relPa, compress, cb, largeInfoSeq);
- infoSeq.resize(largeInfoSeq.size());
- transform(largeInfoSeq.begin(), largeInfoSeq.end(), infoSeq.begin(), toFileInfo);
- return retval;
-}
-
-bool
-IcePatch2Internal::getFileInfoSeqSubDir(const string& basePa, const string& relPa, int compress, GetFileInfoSeqCB* cb,
LargeFileInfoSeq& infoSeq)
{
const string basePath = simplify(basePa);
@@ -1090,14 +1045,6 @@ IcePatch2Internal::getFileInfoSeqSubDir(const string& basePa, const string& relP
}
void
-IcePatch2Internal::saveFileInfoSeq(const string& pa, const FileInfoSeq& infoSeq)
-{
- LargeFileInfoSeq largeInfoSeq(infoSeq.size());
- transform(infoSeq.begin(), infoSeq.end(), largeInfoSeq.begin(), toLargeFileInfo);
- saveFileInfoSeq(pa, largeInfoSeq);
-}
-
-void
IcePatch2Internal::saveFileInfoSeq(const string& pa, const LargeFileInfoSeq& infoSeq)
{
{
@@ -1139,15 +1086,6 @@ IcePatch2Internal::saveFileInfoSeq(const string& pa, const LargeFileInfoSeq& inf
}
void
-IcePatch2Internal::loadFileInfoSeq(const string& pa, FileInfoSeq& infoSeq)
-{
- LargeFileInfoSeq largeInfoSeq;
- loadFileInfoSeq(pa, largeInfoSeq);
- infoSeq.resize(largeInfoSeq.size());
- transform(largeInfoSeq.begin(), largeInfoSeq.end(), infoSeq.begin(), toFileInfo);
-}
-
-void
IcePatch2Internal::loadFileInfoSeq(const string& pa, LargeFileInfoSeq& infoSeq)
{
{
@@ -1247,14 +1185,6 @@ IcePatch2Internal::loadFileInfoSeq(const string& pa, LargeFileInfoSeq& infoSeq)
}
void
-IcePatch2Internal::getFileTree0(const FileInfoSeq& infoSeq, FileTree0& tree0)
-{
- LargeFileInfoSeq largeInfoSeq(infoSeq.size());
- transform(infoSeq.begin(), infoSeq.end(), largeInfoSeq.begin(), toLargeFileInfo);
- getFileTree0(largeInfoSeq, tree0);
-}
-
-void
IcePatch2Internal::getFileTree0(const LargeFileInfoSeq& infoSeq, FileTree0& tree0)
{
tree0.nodes.resize(256);