aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-26 18:48:32 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-26 18:48:32 +0100
commit509993e5983e333f5a50ee75d71c742590d304fb (patch)
tree1d56170f180d253998b6108183fb0b6a9715aa05 /src/libutil/util.cc
parentd58ceae022ad887686e55068db7229f931eb96af (diff)
Remove unused function
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r--src/libutil/util.cc28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index 9437a2f99..192ff528a 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -281,34 +281,6 @@ void writeLine(int fd, string s)
}
-static void _computePathSize(const Path & path,
- unsigned long long & bytes, unsigned long long & blocks)
-{
- checkInterrupt();
-
- struct stat st = lstat(path);
-
- bytes += st.st_size;
- blocks += st.st_blocks;
-
- if (S_ISDIR(st.st_mode)) {
- Strings names = readDirectory(path);
-
- for (Strings::iterator i = names.begin(); i != names.end(); ++i)
- _computePathSize(path + "/" + *i, bytes, blocks);
- }
-}
-
-
-void computePathSize(const Path & path,
- unsigned long long & bytes, unsigned long long & blocks)
-{
- bytes = 0;
- blocks = 0;
- _computePathSize(path, bytes, blocks);
-}
-
-
static void _deletePath(const Path & path, unsigned long long & bytesFreed)
{
checkInterrupt();