From 879254abff071c398f0edc05f9a28f65249bde71 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 12 Nov 2021 17:31:11 +0000 Subject: [PATCH] Remove track min width from the status bar. It presents an over-simplified picture. Better to use Inspect > Constraints Resolution.... Fixes https://gitlab.com/kicad/code/kicad/issues/9623 --- pcbnew/pcb_track.cpp | 35 ----------------------------------- pcbnew/pcb_track.h | 2 -- 2 files changed, 37 deletions(-) diff --git a/pcbnew/pcb_track.cpp b/pcbnew/pcb_track.cpp index 1688385cf5..81554eea07 100644 --- a/pcbnew/pcb_track.cpp +++ b/pcbnew/pcb_track.cpp @@ -132,34 +132,6 @@ int PCB_TRACK::GetLocalClearance( wxString* aSource ) const } -void PCB_TRACK::GetWidthConstraints( int* aMin, int* aMax, wxString* aSource ) const -{ - *aMin = 0; - *aMax = INT_MAX; - - DRC_CONSTRAINT constraint; - - if( GetBoard() && GetBoard()->GetDesignSettings().m_DRCEngine ) - { - BOARD_DESIGN_SETTINGS& bds = GetBoard()->GetDesignSettings(); - - constraint = bds.m_DRCEngine->EvalRules( TRACK_WIDTH_CONSTRAINT, this, nullptr, GetLayer() ); - } - - if( constraint.Value().HasMin() || constraint.Value().HasMax() ) - { - if( constraint.Value().HasMin() ) - *aMin = constraint.Value().Min(); - - if( constraint.Value().HasMax() ) - *aMax = constraint.Value().Max(); - - if( aSource ) - *aSource = constraint.GetName(); - } -} - - int PCB_VIA::GetMinAnnulus( PCB_LAYER_ID aLayer, wxString* aSource ) const { if( !FlashLayer( aLayer ) ) @@ -728,13 +700,6 @@ void PCB_TRACK::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector