MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / cleanup

Method cleanup

source/game/StarItemDatabase.cpp:143–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void ItemDatabase::cleanup() {
144 {
145 MutexLocker locker(m_cacheMutex);
146 m_itemCache.cleanup([](ItemCacheEntry const&, ItemPtr const& item) {
147 return !item.unique();
148 });
149 }
150}
151
152ItemPtr ItemDatabase::diskLoad(Json const& diskStore) const {
153 if (diskStore) {

Callers

nothing calls this directly

Calls 1

uniqueMethod · 0.45

Tested by

no test coverage detected