Old plugins cleanup (#12932)
Some checks are pending
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Waiting to run
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Waiting to run

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

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)