diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index 18f750038a..9ebcebba25 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -127,16 +127,9 @@ bool CONNECTION_SUBGRAPH::ResolveDrivers( bool aCheckMultipleDrivers ) return a_name < b_name; }; - auto strong_cmp = [this]( SCH_ITEM* a, SCH_ITEM* b ) -> bool - { - const wxString& a_name = GetNameForDriver( a ); - const wxString& b_name = GetNameForDriver( b ); - return a_name < b_name; - }; - PRIORITY highest_priority = PRIORITY::INVALID; std::set candidates( candidate_cmp ); - std::set strong_drivers( strong_cmp ); + std::set strong_drivers; m_driver = nullptr;