diff --git a/src/auto4_base.h b/src/auto4_base.h index e7818d1d8..21a93932c 100644 --- a/src/auto4_base.h +++ b/src/auto4_base.h @@ -49,10 +49,8 @@ #include -class AssFile; class AssStyle; class DialogProgress; -class SubtitleFormat; class wxWindow; class wxDialog; @@ -181,8 +179,6 @@ namespace Automation4 { virtual std::vector GetMacros() const=0; /// Get a list of export filters provided by this script virtual std::vector GetFilters() const=0; - /// Get a list of subtitle formats provided by this script - virtual std::vector GetFormats() const=0; }; /// A manager of loaded automation scripts @@ -295,6 +291,5 @@ namespace Automation4 { std::vector GetMacros() const override { return {}; } std::vector GetFilters() const override { return {}; } - std::vector GetFormats() const override { return {}; } }; } diff --git a/src/auto4_lua.cpp b/src/auto4_lua.cpp index a48bfd721..d7759c088 100644 --- a/src/auto4_lua.cpp +++ b/src/auto4_lua.cpp @@ -340,7 +340,6 @@ namespace Automation4 { std::vector GetMacros() const override { return macros; } std::vector GetFilters() const override; - std::vector GetFormats() const override { return {}; } }; LuaScript::LuaScript(agi::fs::path const& filename) diff --git a/src/dialog_automation.cpp b/src/dialog_automation.cpp index 6c7a9128d..a5488b563 100644 --- a/src/dialog_automation.cpp +++ b/src/dialog_automation.cpp @@ -254,9 +254,6 @@ void DialogAutomation::OnInfo(wxCommandEvent &) boost::transform(ei->script->GetFilters(), append_info, [](const Automation4::ExportFilter* f) { return wxString::Format(_(" Export filter: %s"), to_wx(f->GetName())); }); - boost::transform(ei->script->GetFormats(), append_info, [](const SubtitleFormat* f) { - return wxString::Format(_(" Subtitle format handler: %s"), to_wx(f->GetName())); - }); } wxMessageBox(wxJoin(info, '\n', 0), _("Automation Script Info"));