From d9c45988f7e724353a78ca14260016487b046158 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Thu, 8 Sep 2022 00:00:00 -0500 Subject: [PATCH] top: eliminate that 'TOG4_NOFORCE' compile conditional When two abreast display was introduce, in that commit shown below, this #define provision was also added. It actually was an artifact left from program development and never made much sense in a real world application. If activated it would make the '4' toggle appear to be broken since it would only take affect if a user first activated individual cpu display (the '1' toggle off). And there was no error message offered to those users. So, this questionable #define is now being eliminated. Reference(s): . May, 2020 - introduce 2 abreast display commit 59f5a37a247184b3009af963706ca68198067185 Signed-off-by: Jim Warner --- src/top/top.c | 5 ----- src/top/top.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/top/top.c b/src/top/top.c index 682fbc51..7a4f9b3c 100644 --- a/src/top/top.c +++ b/src/top/top.c @@ -5713,13 +5713,8 @@ static void keys_summary (int ch) { w->rc.double_up = 0; break; } -#ifdef TOG4_NOFORCE - if (CHKw(w, (View_CPUSUM | View_CPUNOD))) - w->rc.double_up = 0; -#else if (w->rc.double_up) OFFw(w, (View_CPUSUM | View_CPUNOD)); -#endif break; case 'C': VIZTOGw(w, View_SCROLL); diff --git a/src/top/top.h b/src/top/top.h index e45d3ecd..aa0f7a8a 100644 --- a/src/top/top.h +++ b/src/top/top.h @@ -61,7 +61,6 @@ //#define THREADED_CPU /* separate background thread for cpu updt */ //#define THREADED_MEM /* separate background thread for mem updt */ //#define THREADED_TSK /* separate background thread for tsk updt */ -//#define TOG4_NOFORCE /* no force 2 abreast mode with '4' toggle */ //#define TOG4_NOTRUNC /* ensure no truncation for 2 abreast mode */ //#define TOG4_OFF_MEM /* don't show two abreast memory statistic */ //#define TOG4_OFF_SEP /* don't show two abreast visual separator */ -- 2.40.0