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) { VideoProviderCache::VideoProviderCache(VideoProvider *parent) {
master = parent; master = parent;
cacheMax = 0; 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; 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 /// @brief Add to cache
/// @param n /// @param n

View file

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