added TileCache::remove method.

This commit is contained in:
rachytski 2012-02-23 17:44:20 +04:00 committed by Alex Zolotarev
parent 1882f13bf5
commit f7204f9ae5
2 changed files with 7 additions and 1 deletions

View file

@ -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);
}

View file

@ -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);
};