From 8d8c743f9775554a5526f7af0e06364f673d2795 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Wed, 5 Jun 2019 21:27:56 -0400 Subject: [PATCH] Connectivity: remove unused method --- eeschema/connection_graph.cpp | 21 --------------------- eeschema/connection_graph.h | 9 --------- 2 files changed, 30 deletions(-) diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index 287eafcccc..834e88d05a 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -1769,27 +1769,6 @@ std::vector CONNECTION_GRAPH::GetBusesNeedingMigrati } -bool CONNECTION_GRAPH::UsesNewBusFeatures() const -{ - for( auto&& subgraph : m_subgraphs ) - { - if( !subgraph->m_driver ) - continue; - - auto sheet = subgraph->m_sheet; - auto connection = subgraph->m_driver->Connection( sheet ); - - if( !connection->IsBus() ) - continue; - - if( connection->Type() == CONNECTION_BUS_GROUP ) - return true; - } - - return false; -} - - int CONNECTION_GRAPH::RunERC( const ERC_SETTINGS& aSettings, bool aCreateMarkers ) { int error_count = 0; diff --git a/eeschema/connection_graph.h b/eeschema/connection_graph.h index c698e42dc4..b0082521c0 100644 --- a/eeschema/connection_graph.h +++ b/eeschema/connection_graph.h @@ -228,15 +228,6 @@ public: std::vector GetBusesNeedingMigration(); - /** - * Returns true if the graph makes use of any of the new bus features - * - * For quality control during rollout of new bus features: - * - Aliases - * - Bus groups - */ - bool UsesNewBusFeatures() const; - /** * Runs electrical rule checks on the connectivity graph. *