mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
make functions in MD5 implementation local
also get rid of mostly unused helper libraries and some stylistic oddities in the MD5 code
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
--[[
|
||||
A global LRU cache
|
||||
]]--
|
||||
require("MD5")
|
||||
local md5 = require("MD5")
|
||||
local lfs = require("libs/libkoreader-lfs")
|
||||
local DEBUG = require("dbg")
|
||||
|
||||
@@ -35,7 +35,7 @@ local cache_path = lfs.currentdir().."/cache/"
|
||||
--[[
|
||||
-- return a snapshot of disk cached items for subsequent check
|
||||
--]]
|
||||
function getDiskCache()
|
||||
local function getDiskCache()
|
||||
local cached = {}
|
||||
for key_md5 in lfs.dir(cache_path) do
|
||||
local file = cache_path..key_md5
|
||||
|
||||
Reference in New Issue
Block a user