Release canvas memory faster

This commit is contained in:
ahocevar
2019-01-21 22:43:36 +01:00
parent b6d115d868
commit e37734826c
6 changed files with 31 additions and 13 deletions
-10
View File
@@ -287,16 +287,6 @@ class LRUCache extends EventTarget {
this.highWaterMark = size;
}
/**
* Prune the cache.
*/
prune() {
while (this.canExpireCache()) {
this.pop();
}
}
}
export default LRUCache;