From ed4d66e76b65bf6f74677105e128975717c714e2 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 4 Oct 2023 16:30:49 +0100 Subject: [PATCH] Remove dead code. --- eeschema/sim/sim_plot_colors.cpp | 2 -- eeschema/sim/sim_plot_colors.h | 1 - eeschema/sim/sim_plot_tab.cpp | 11 ----------- 3 files changed, 14 deletions(-) diff --git a/eeschema/sim/sim_plot_colors.cpp b/eeschema/sim/sim_plot_colors.cpp index c260c7690a..08dc5f0dd0 100644 --- a/eeschema/sim/sim_plot_colors.cpp +++ b/eeschema/sim/sim_plot_colors.cpp @@ -101,14 +101,12 @@ void SIM_PLOT_COLORS::FillDefaultColorList( bool aDarkMode ) m_colorList.emplace_back( 0, 0, 0 ); // Bg color m_colorList.emplace_back( 255, 255, 255 ); // Fg color (texts) m_colorList.emplace_back( 130, 130, 130 ); // Axis color - m_colorList.emplace_back( 255, 255, 255 ); // cursors color } else { m_colorList.emplace_back( 255, 255, 255 ); // Bg color m_colorList.emplace_back( 0, 0, 0 ); // Fg color (texts) m_colorList.emplace_back( 130, 130, 130 ); // Axis color - m_colorList.emplace_back( 0, 0, 0 ); // cursors color } // Add a list of color for traces, starting at index SIM_TRACE_COLOR diff --git a/eeschema/sim/sim_plot_colors.h b/eeschema/sim/sim_plot_colors.h index b1d82a4778..483fb64ab1 100644 --- a/eeschema/sim/sim_plot_colors.h +++ b/eeschema/sim/sim_plot_colors.h @@ -51,7 +51,6 @@ public: BACKGROUND, FOREGROUND, AXIS, - CURSOR, TRACE // First index for trace colors list }; diff --git a/eeschema/sim/sim_plot_tab.cpp b/eeschema/sim/sim_plot_tab.cpp index 00818b9371..e0167751ab 100644 --- a/eeschema/sim/sim_plot_tab.cpp +++ b/eeschema/sim/sim_plot_tab.cpp @@ -795,16 +795,6 @@ void SIM_PLOT_TAB::UpdatePlotColors() m_colors.GetPlotColor( SIM_PLOT_COLORS::COLOR_SET::FOREGROUND ), m_colors.GetPlotColor( SIM_PLOT_COLORS::COLOR_SET::AXIS ) ); - // Update color of all traces - for( const auto& [ name, trace ] : m_traces ) - { - for( const auto& [ id, cursor ] : trace->GetCursors() ) - { - if( cursor ) - cursor->SetPen( wxPen( m_colors.GetPlotColor( SIM_PLOT_COLORS::COLOR_SET::CURSOR ) ) ); - } - } - m_plotWin->UpdateAll(); } @@ -967,7 +957,6 @@ void SIM_PLOT_TAB::EnableCursor( const wxString& aVectorName, int aType, int aCu cursor->SetName( aSignalName ); cursor->SetX( center ); - cursor->SetPen( wxPen( m_colors.GetPlotColor( SIM_PLOT_COLORS::COLOR_SET::CURSOR ) ) ); t->SetCursor( aCursorId, cursor ); m_plotWin->AddLayer( cursor );