From 1f099906186a2cb6f417081a6e417b13a890768e Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Sun, 4 Mar 2018 18:02:46 +0100 Subject: [PATCH] Remove not used ListNets() methods --- eeschema/netlist_object.h | 7 ------- eeschema/netlist_object_list.cpp | 26 -------------------------- eeschema/sch_edit_frame.cpp | 9 --------- eeschema/sch_edit_frame.h | 5 ----- include/kiway_player.h | 10 ---------- 5 files changed, 57 deletions(-) diff --git a/eeschema/netlist_object.h b/eeschema/netlist_object.h index 3227bab67b..c322b71140 100644 --- a/eeschema/netlist_object.h +++ b/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() { diff --git a/eeschema/netlist_object_list.cpp b/eeschema/netlist_object_list.cpp index 7b6d1ed1ee..40f33e7f2c 100644 --- a/eeschema/netlist_object_list.cpp +++ b/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; -} diff --git a/eeschema/sch_edit_frame.cpp b/eeschema/sch_edit_frame.cpp index ae4c5f8a8a..d74fabfa08 100644 --- a/eeschema/sch_edit_frame.cpp +++ b/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; -} diff --git a/eeschema/sch_edit_frame.h b/eeschema/sch_edit_frame.h index 7f4d420062..d5239d2b8d 100644 --- a/eeschema/sch_edit_frame.h +++ b/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. * diff --git a/include/kiway_player.h b/include/kiway_player.h index a2cb4cde09..098892bf34 100644 --- a/include/kiway_player.h +++ b/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