Remove unneeded field in cache entry

This commit is contained in:
Sebastian Messmer 2015-04-27 18:20:44 +02:00
parent bf77e0ffa7
commit 58f43f6929

View File

@ -26,18 +26,9 @@ public:
return std::move(_block);
}
void setNextEntry(const CacheEntry *entry) {
_nextEntry = entry;
}
const CacheEntry *nextEntry() {
return _nextEntry;
}
private:
boost::posix_time::ptime _lastAccess;
std::unique_ptr<Block> _block;
const CacheEntry *_nextEntry;
static boost::posix_time::ptime currentTime() {
return boost::posix_time::microsec_clock::local_time();