From c55124c73e52b68e3bcbe0d54e44e2ee0b6ef779 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Wed, 5 Aug 2026 20:34:10 +0200 Subject: [PATCH] version: drop dead code --- frontend/version.lua | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/frontend/version.lua b/frontend/version.lua index e3629811c..447456d76 100644 --- a/frontend/version.lua +++ b/frontend/version.lua @@ -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()