Old plugins cleanup (#12932)

* Remove OBSOLETE_PLUGINS table.
* Remove old plugins.
* exporter: remove old settings migration
This commit is contained in:
Martín Fernández authored and GitHub committed 2025-03-18 20:28:25 +01:00
1 parent d106336a79
commit fbe2e452f1
3 files changed
+14 -48

No files matched your search

+1 -20
View File
@@ -5,19 +5,6 @@ local _ = require("gettext")
local DEFAULT_PLUGIN_PATH = "plugins"
-- plugin names that were removed and are no longer available.
local OBSOLETE_PLUGINS = {
autofrontlight = true,
backgroundrunner = true,
calibrecompanion = true,
evernote = true,
goodreads = true,
kobolight = true,
send2ebook = true,
storagestat = true,
zsync = true,
}
local DEPRECATION_MESSAGES = {
remove = _("This plugin is unmaintained and will be removed soon."),
feature = _("The following features are unmaintained and will be removed soon:"),
@@ -98,10 +85,6 @@ function PluginLoader:_discover()
if type(plugins_disabled) ~= "table" then
plugins_disabled = {}
end
-- disable obsolete plugins
for element in pairs(OBSOLETE_PLUGINS) do
plugins_disabled[element] = true
end
local discovered = {}
local lookup_path_list = { DEFAULT_PLUGIN_PATH }
@@ -232,9 +215,7 @@ function PluginLoader:genPluginManagerSubItem()
for _, plugin in ipairs(disabled_plugins) do
local element = getMenuTable(plugin)
element.enable = false
if not OBSOLETE_PLUGINS[element.name] then
table.insert(self.all_plugins, element)
end
table.insert(self.all_plugins, element)
end
table.sort(self.all_plugins, function(v1, v2) return v1.fullname < v2.fullname end)