Add a way to remove files from cache

This commit is contained in:
Andy Cedilnik
2002-09-19 14:34:15 -04:00
parent 7dbff46638
commit 0301b8366b
2 changed files with 14 additions and 0 deletions
+10
View File
@@ -109,3 +109,13 @@ bool cmListFileCache::CacheFile(const char* path)
m_ListFileCache[path] = inFile;
return true;
}
void cmListFileCache::FlushCache(const char* path)
{
ListFileMap::iterator it = m_ListFileCache.find(path);
if ( it != m_ListFileCache.end() )
{
m_ListFileCache.erase(it);
return;
}
}