diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-04-09 22:14:57 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-04-09 22:14:57 +0000 |
commit | 7175691ff83781a2c733540f465298e78f7ad93f (patch) | |
tree | 5ae72ce170213c4132a4d19fb7828ac552fe3bc2 /lib/backupstore/BackupStoreContext.h | |
parent | 65694550d9352879befaa80a4dc9553e8d359310 (diff) |
Don't require passing the object ID into BackupStoreContext::SaveDirectory.
Passing the wrong object ID would just result in an assertion being thrown
(in debug builds) or silently doing the wrong thing (in release builds). I
can't see any useful use for this extra parameter, since we can get the
container ID from the directory anyway.
Diffstat (limited to 'lib/backupstore/BackupStoreContext.h')
-rw-r--r-- | lib/backupstore/BackupStoreContext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backupstore/BackupStoreContext.h b/lib/backupstore/BackupStoreContext.h index 62b828df..2299c0fd 100644 --- a/lib/backupstore/BackupStoreContext.h +++ b/lib/backupstore/BackupStoreContext.h @@ -171,7 +171,7 @@ public: private: void MakeObjectFilename(int64_t ObjectID, std::string &rOutput, bool EnsureDirectoryExists = false); BackupStoreDirectory &GetDirectoryInternal(int64_t ObjectID); - void SaveDirectory(BackupStoreDirectory &rDir, int64_t ObjectID); + void SaveDirectory(BackupStoreDirectory &rDir); void RemoveDirectoryFromCache(int64_t ObjectID); void ClearDirectoryCache(); void DeleteDirectoryRecurse(int64_t ObjectID, bool Undelete); |