Remove the (unimplemented) machinery for automation subtitle formats

This commit is contained in:
Thomas Goyne 2014-03-26 11:17:38 -07:00
parent e477005ecd
commit 35301df5f7
3 changed files with 0 additions and 9 deletions

View file

@ -49,10 +49,8 @@
#include <wx/dialog.h>
class AssFile;
class AssStyle;
class DialogProgress;
class SubtitleFormat;
class wxWindow;
class wxDialog;
@ -181,8 +179,6 @@ namespace Automation4 {
virtual std::vector<cmd::Command*> GetMacros() const=0;
/// Get a list of export filters provided by this script
virtual std::vector<ExportFilter*> GetFilters() const=0;
/// Get a list of subtitle formats provided by this script
virtual std::vector<SubtitleFormat*> GetFormats() const=0;
};
/// A manager of loaded automation scripts
@ -295,6 +291,5 @@ namespace Automation4 {
std::vector<cmd::Command*> GetMacros() const override { return {}; }
std::vector<ExportFilter*> GetFilters() const override { return {}; }
std::vector<SubtitleFormat*> GetFormats() const override { return {}; }
};
}

View file

@ -340,7 +340,6 @@ namespace Automation4 {
std::vector<cmd::Command*> GetMacros() const override { return macros; }
std::vector<ExportFilter*> GetFilters() const override;
std::vector<SubtitleFormat*> GetFormats() const override { return {}; }
};
LuaScript::LuaScript(agi::fs::path const& filename)

View file

@ -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"));