MetaFileSystem: Clean up unused function

This commit is contained in:
Henrik Rydgård
2024-11-29 14:13:41 +01:00
parent 14815d9330
commit b6f648eecc
3 changed files with 9 additions and 11 deletions
+2 -1
View File
@@ -5,5 +5,6 @@
#include "Common/File/Path.h"
// If this fails, false is returned and space is negative.
// Try to avoid calling this from the main thread, if possible. Can be SLOW.
// Try to avoid calling this from the main thread, if possible. Not super fast,
// but is also not allowed to do things like scan the entire disk.
bool free_disk_space(const Path &path, int64_t &space);
+6
View File
@@ -682,3 +682,9 @@ int64_t MetaFileSystem::ComputeRecursiveDirectorySize(const std::string &filenam
return false;
}
}
bool MetaFileSystem::ComputeRecursiveDirSizeIfFast(const std::string &path, int64_t *size) {
// Shouldn't be called. Can't recurse MetaFileSystem.
_dbg_assert_(false);
return false;
}
+1 -10
View File
@@ -144,16 +144,7 @@ public:
int64_t ComputeRecursiveDirectorySize(const std::string &dirPath);
// Shouldn't ever be called, but meh.
bool ComputeRecursiveDirSizeIfFast(const std::string &path, int64_t *size) override {
int64_t sizeTemp = ComputeRecursiveDirectorySize(path);
if (sizeTemp >= 0) {
*size = sizeTemp;
return true;
} else {
return false;
}
}
bool ComputeRecursiveDirSizeIfFast(const std::string &path, int64_t *size) override;
void Describe(char *buf, size_t size) const override { snprintf(buf, size, "Meta"); }