mirror of
https://github.com/koreader/koreader.git
synced 2026-12-03 02:33:44 +00:00
version: drop dead code
This commit is contained in:
1 parent
982a774d81
commit
c55124c73e
1 file changed
-18
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user