mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
MetaFileSystem: Clean up unused function
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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"); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user