Remove obsolete check.

This commit is contained in:
Bartosz Taudul 2021-11-14 17:09:37 +01:00
parent ffa8bf4d75
commit 0e05d70691
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -6519,7 +6519,6 @@ int View::DrawPlots( int offset, double pxns, const ImVec2& wpos, bool hover, fl
for( const auto& v : m_worker.GetPlots() )
{
assert( v->data.is_sorted() );
auto& vis = Vis( v );
if( !vis.visible )
{
@ -6602,7 +6601,7 @@ int View::DrawPlots( int offset, double pxns, const ImVec2& wpos, bool hover, fl
if( yPos + PlotHeight >= yMin && yPos <= yMax )
{
auto& vec = v->data;
if( !vec.is_sorted() ) vec.sort();
vec.ensure_sorted();
if( v->type == PlotType::Memory )
{