1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 09:01:15 +02:00

moduleMain functions were never called but with nullptr; so simplify

This commit is contained in:
Paul Licameli
2021-05-13 16:20:44 -04:00
parent 6242be0a8e
commit bd6fb75886
19 changed files with 36 additions and 97 deletions

View File

@@ -38,7 +38,7 @@ DECLARE_MODULE_ENTRY(AudacityModule)
{
// Create and register the importer
// Trust the module manager not to leak this
return safenew VampEffectsModule(path);
return safenew VampEffectsModule();
}
// ============================================================================
@@ -52,12 +52,8 @@ DECLARE_BUILTIN_MODULE(VampsEffectBuiltin);
//
///////////////////////////////////////////////////////////////////////////////
VampEffectsModule::VampEffectsModule(const wxString *path)
VampEffectsModule::VampEffectsModule()
{
if (path)
{
mPath = *path;
}
}
VampEffectsModule::~VampEffectsModule()
@@ -70,7 +66,7 @@ VampEffectsModule::~VampEffectsModule()
PluginPath VampEffectsModule::GetPath()
{
return mPath;
return {};
}
ComponentInterfaceSymbol VampEffectsModule::GetSymbol()

View File

@@ -29,7 +29,7 @@
class VampEffectsModule final : public ModuleInterface
{
public:
VampEffectsModule(const wxString *path);
VampEffectsModule();
virtual ~VampEffectsModule();
// ComponentInterface implementation
@@ -67,9 +67,6 @@ private:
std::unique_ptr<Vamp::Plugin> FindPlugin(const PluginPath & wpath,
int & output,
bool & hasParameters);
private:
PluginPath mPath;
};
#endif