version: drop dead code

This commit is contained in:
Benoit Pierre authored and Frans de Jonge committed 2026-08-09 11:21:54 +02:00
1 parent 982a774d81
commit c55124c73e
1 file changed
-18
-18
View File
@@ -70,24 +70,6 @@ function Version:getShortVersion()
return self.short
end
--- Returns the release date of the current version of KOReader, YYYYmmdd, in UTC.
--- Technically closer to the build date, but close enough where official builds are concerned ;).
-- @treturn int date
function Version:getBuildDate()
if not self.date then
local lfs = require("libs/libkoreader-lfs")
local mtime = lfs.attributes("git-rev", "modification")
if mtime then
local ts = os.date("!%Y%m%d", mtime)
self.date = tonumber(ts) or 0
else
-- No git-rev file?
self.date = 0
end
end
return self.date
end
--- Get last line in `VERSION_LOG_FILE`.
-- @treturn last line in `VERSION_LOG_FILE` or an empty string
function Version:getLastLogLine()