forked from mia/Aegisub
Remove SetCacheMax() function as it is no longer used.
Originally committed to SVN as r3833.
This commit is contained in:
parent
e38b00fb51
commit
dadd09ff49
2 changed files with 4 additions and 13 deletions
|
@ -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
|
||||
|
|
|
@ -88,7 +88,6 @@ private:
|
|||
|
||||
protected:
|
||||
// Cache functions
|
||||
void SetCacheMax(int n_frames);
|
||||
unsigned GetCurCacheSize();
|
||||
void ClearCache();
|
||||
|
||||
|
|
Loading…
Reference in a new issue