From ec7fc9ffb6e376e183bfc8d3b81f0a3180dea283 Mon Sep 17 00:00:00 2001 From: Martijn Courteaux Date: Tue, 21 May 2024 19:08:54 +0200 Subject: [PATCH] Cleanup --- profiler/src/profiler/TracyView_Compare.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/profiler/src/profiler/TracyView_Compare.cpp b/profiler/src/profiler/TracyView_Compare.cpp index 9de14d90..de99f987 100644 --- a/profiler/src/profiler/TracyView_Compare.cpp +++ b/profiler/src/profiler/TracyView_Compare.cpp @@ -187,16 +187,16 @@ static void PrintDiff( const std::string& diff ) static void PrintSpeedupOrSlowdown( double time_this, double time_external, const char *metric ) { - const char *label, *label2; + const char *label; const char *time_diff = TimeToString( abs( time_external - time_this ) ); ImVec4 color; double factor = time_this / time_external; if( time_external >= time_this ) { - label = "less than external", label2 = "faster"; + label = "less than external"; color = ImVec4( 0.1f, 0.6f, 0.1f, 1.0f ); } else { - label = "more than external", label2 = "slower"; + label = "more than external"; color = ImVec4( 0.8f, 0.1f, 0.1f, 1.0f ); } TextColoredUnformatted( color, metric );