Remove not used ListNets() methods

This commit is contained in:
Maciej Suminski 2018-03-04 18:02:46 +01:00
parent 260f680c6c
commit 1f09990618
5 changed files with 0 additions and 57 deletions

View File

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

View File

@ -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;
}

View File

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

View File

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

View File

@ -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 * Function ShowModal
* puts up this wxFrame as if it were a modal dialog, with all other instantiated * puts up this wxFrame as if it were a modal dialog, with all other instantiated