Remove SetCacheMax() function as it is no longer used.

Originally committed to SVN as r3833.
This commit is contained in:
Karl Blomster 2009-11-29 19:12:40 +00:00
parent e38b00fb51
commit dadd09ff49
2 changed files with 4 additions and 13 deletions

View File

@ -49,7 +49,10 @@
VideoProviderCache::VideoProviderCache(VideoProvider *parent) {
master = parent;
cacheMax = 0;
parent->WantsCaching() ? SetCacheMax(1) : SetCacheMax(0);
if (parent->WantsCaching())
cacheMax = Options.AsInt(_T("Video cache size")) << 20; // convert MB to bytes
else
cacheMax = 0;
}
@ -89,17 +92,6 @@ const AegiVideoFrame VideoProviderCache::GetFrame(int n) {
return *srcFrame;
}
/// @brief Set maximum cache size
/// @param n
///
void VideoProviderCache::SetCacheMax(int n) {
if (n <= 0)
cacheMax = 0;
else
cacheMax = Options.AsInt(_T("Video cache size")) << 20; // convert MB to bytes
}
/// @brief Add to cache
/// @param n

View File

@ -88,7 +88,6 @@ private:
protected:
// Cache functions
void SetCacheMax(int n_frames);
unsigned GetCurCacheSize();
void ClearCache();