diff options
author | Nico Weber <thakis@chromium.org> | 2014-06-16 17:27:10 (GMT) |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2014-06-16 17:27:10 (GMT) |
commit | 9bdb0644d141a1e376e4fd0aee1b373a3a7c3468 (patch) | |
tree | ecae9d7970efa89463562b3dc730ef6fbf4180ba /src/disk_interface.h | |
parent | f0b83f7812114cfe9f5f1d32fe8fb53dff8cecba (diff) | |
download | Ninja-9bdb0644d141a1e376e4fd0aee1b373a3a7c3468.zip Ninja-9bdb0644d141a1e376e4fd0aee1b373a3a7c3468.tar.gz Ninja-9bdb0644d141a1e376e4fd0aee1b373a3a7c3468.tar.bz2 |
simplify statcache code more
Diffstat (limited to 'src/disk_interface.h')
-rw-r--r-- | src/disk_interface.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/disk_interface.h b/src/disk_interface.h index 0f6dfd3..b152a62 100644 --- a/src/disk_interface.h +++ b/src/disk_interface.h @@ -61,7 +61,7 @@ struct RealDiskInterface : public DiskInterface { , use_cache_(false) #endif {} - virtual ~RealDiskInterface() { ClearCache(); } + virtual ~RealDiskInterface() {} virtual TimeStamp Stat(const string& path); virtual bool MakeDir(const string& path); virtual bool WriteFile(const string& path, const string& contents); @@ -82,10 +82,9 @@ struct RealDiskInterface : public DiskInterface { typedef map<string, TimeStamp> DirCache; // TODO: Neither a map nor a hashmap seems ideal here. If the statcache // works out, come up with a better data structure. - typedef map<string, DirCache*> Cache; + typedef map<string, DirCache> Cache; Cache cache_; #endif - void ClearCache(); }; #endif // NINJA_DISK_INTERFACE_H_ |