Browse Source

Remove not used ListNets() methods

pull/5/merge
Maciej Suminski 8 years ago
parent
commit
1f09990618
  1. 7
      eeschema/netlist_object.h
  2. 26
      eeschema/netlist_object_list.cpp
  3. 9
      eeschema/sch_edit_frame.cpp
  4. 5
      eeschema/sch_edit_frame.h
  5. 10
      include/kiway_player.h

7
eeschema/netlist_object.h

@ -403,13 +403,6 @@ public:
*/
void TestforSimilarLabels();
/**
* Function ListNets
* return a the list of net names.
*/
wxArrayString ListNets();
#if defined(DEBUG)
void DumpNetTable()
{

26
eeschema/netlist_object_list.cpp

@ -866,29 +866,3 @@ void NETLIST_OBJECT_LIST::setUnconnectedFlag()
}
}
}
wxArrayString NETLIST_OBJECT_LIST::ListNets()
{
wxArrayString netNames;
wxString netName;
wxString ref;
int netCode;
int lastNetCode = -1;
int sameNetcodeCount = 0;
for( unsigned ii = 0; ii < size(); ii++ )
{
NETLIST_OBJECT* nitem = GetItem( ii );
// New net found, write net id;
if( ( netCode = nitem->GetNet() ) != lastNetCode )
{
netName = nitem->GetNetName();
netNames.Add( netName );
lastNetCode = netCode;
}
}
return netNames;
}

9
eeschema/sch_edit_frame.cpp

@ -1520,12 +1520,3 @@ void SCH_EDIT_FRAME::SetIconScale( int aScale )
Layout();
SendSizeEvent();
}
wxArrayString SCH_EDIT_FRAME::ListNets()
{
NETLIST_OBJECT_LIST* net_atoms = BuildNetListBase();
wxArrayString netnames = net_atoms->ListNets();
return netnames;
}

5
eeschema/sch_edit_frame.h

@ -577,11 +577,6 @@ public:
unsigned aNetlistOptions,
REPORTER* aReporter = NULL );
/**
* Create a list of net names currently in the schematic.
*/
wxArrayString ListNets() override;
/**
* Clear the current component annotation.
*

10
include/kiway_player.h

@ -180,16 +180,6 @@ public:
}
/**
* Create a list of net names currently in use by the player .
*/
VTBL_ENTRY wxArrayString ListNets()
{
wxArrayString a;
return a;
};
/**
* Function ShowModal
* puts up this wxFrame as if it were a modal dialog, with all other instantiated

Loading…
Cancel
Save