Browse Source

LTspice importer - remove dead code

newinvert
Roberto Fernandez Bautista 2 years ago
parent
commit
6539171459
  1. 6
      eeschema/sch_plugins/ltspice/ltspice_sch_plugin.cpp
  2. 1
      eeschema/sch_plugins/ltspice/ltspice_schematic.cpp
  3. 4
      eeschema/sch_plugins/ltspice/ltspice_schematic.h

6
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();

1
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<LTSPICE_FILE> sourceFiles;

4
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.

Loading…
Cancel
Save