Minor tidying

This commit is contained in:
Maruno17
2021-03-09 21:31:17 +00:00
parent 4c35a7ecfe
commit 117396f8e2
11 changed files with 38 additions and 34 deletions

View File

@@ -138,7 +138,6 @@ class BitmapWrapper < Bitmap
end
module BitmapCache
@cache = ObjectSpace::WeakMap.new
@@ -154,7 +153,9 @@ module BitmapCache
end
def self.debug
File.open("bitmapcache2.txt", "wb") { |f|
t = Time.now
filename = t.strftime("%H %M %S.%L.txt")
File.open("bitmapcache_" + filename, "wb") { |f|
for i in @cache.keys
k = fromCache(i)
if !k