forked from organicmaps/organicmaps-tmp
added TileCache::remove method.
This commit is contained in:
parent
1882f13bf5
commit
f7204f9ae5
2 changed files with 7 additions and 1 deletions
|
@ -81,3 +81,8 @@ Tile const & TileCache::getTile(Tiler::RectInfo const & key)
|
|||
{
|
||||
return m_cache.Find(key).m_tile;
|
||||
}
|
||||
|
||||
void TileCache::remove(Tiler::RectInfo const & key)
|
||||
{
|
||||
m_cache.Remove(key);
|
||||
}
|
||||
|
|
|
@ -68,5 +68,6 @@ public:
|
|||
void touchTile(Tiler::RectInfo const & key);
|
||||
/// get tile from the cache
|
||||
Tile const & getTile(Tiler::RectInfo const & key);
|
||||
|
||||
/// remove the specified tile from the cache
|
||||
void remove(Tiler::RectInfo const & key);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue