Remove dead code.
This commit is contained in:
parent
c010c7b0ea
commit
ed4d66e76b
|
@ -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
|
||||
|
|
|
@ -51,7 +51,6 @@ public:
|
|||
BACKGROUND,
|
||||
FOREGROUND,
|
||||
AXIS,
|
||||
CURSOR,
|
||||
TRACE // First index for trace colors list
|
||||
};
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue