diff --git a/eeschema/sch_plugins/ltspice/ltspice_sch_plugin.cpp b/eeschema/sch_plugins/ltspice/ltspice_sch_plugin.cpp index 5267e23035..7c1dae8975 100644 --- a/eeschema/sch_plugins/ltspice/ltspice_sch_plugin.cpp +++ b/eeschema/sch_plugins/ltspice/ltspice_sch_plugin.cpp @@ -98,11 +98,7 @@ SCH_SHEET* SCH_LTSPICE_PLUGIN::Load( const wxString& aFileName, SCHEMATIC* aSche } LTSPICE_SCHEMATIC ascFile( aFileName, ltspiceDataDir, nullptr, nullptr ); - SCH_PLUGIN::SCH_PLUGIN_RELEASER sch_plugin; - - sch_plugin.set( SCH_IO_MGR::FindPlugin( SCH_IO_MGR::SCH_KICAD ) ); - - ascFile.Load( aSchematic, rootSheet, &sch_plugin, aFileName ); + ascFile.Load( aSchematic, rootSheet, aFileName ); aSchematic->CurrentSheet().UpdateAllScreenReferences(); diff --git a/eeschema/sch_plugins/ltspice/ltspice_schematic.cpp b/eeschema/sch_plugins/ltspice/ltspice_schematic.cpp index 307089c55f..8ef7ddedfe 100644 --- a/eeschema/sch_plugins/ltspice/ltspice_schematic.cpp +++ b/eeschema/sch_plugins/ltspice/ltspice_schematic.cpp @@ -34,7 +34,6 @@ void LTSPICE_SCHEMATIC::Load( SCHEMATIC* aSchematic, SCH_SHEET* aRootSheet, - SCH_PLUGIN::SCH_PLUGIN_RELEASER* aSchPlugin, const wxFileName& aLibraryFileName ) { std::vector sourceFiles; diff --git a/eeschema/sch_plugins/ltspice/ltspice_schematic.h b/eeschema/sch_plugins/ltspice/ltspice_schematic.h index e14b3a8c94..19a45742a2 100644 --- a/eeschema/sch_plugins/ltspice/ltspice_schematic.h +++ b/eeschema/sch_plugins/ltspice/ltspice_schematic.h @@ -290,11 +290,9 @@ public: * * @param aSchematic is the schematic object. * @param aRootSheet is the root sheet referencing variable. - * @param aSchPlugin is plugin releaser object, used to free memory when loading is done. * @param aLibraryFileName is the name of the library which gets created when the plugin runs. */ - void Load( SCHEMATIC* aSchematic, SCH_SHEET* aRootSheet, - SCH_PLUGIN::SCH_PLUGIN_RELEASER* aSchPlugin, const wxFileName& aLibraryFileName ); + void Load( SCHEMATIC* aSchematic, SCH_SHEET* aRootSheet, const wxFileName& aLibraryFileName ); /** * Used to check if the given symbol is subschematic or not.