From 14f428a1721a7b179be7b650135ec591c215564e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 16 Dec 2021 15:37:01 +0100 Subject: [PATCH] Drop unused Platform variables --- darwin/Platform.c | 2 -- netbsd/Platform.c | 2 -- netbsd/Platform.h | 2 -- pcp/Platform.c | 4 ---- pcp/Platform.h | 4 ---- 5 files changed, 14 deletions(-) diff --git a/darwin/Platform.c b/darwin/Platform.c index 7fda8309..dcdee1a5 100644 --- a/darwin/Platform.c +++ b/darwin/Platform.c @@ -59,8 +59,6 @@ ScreenDefaults Platform_defaultScreens[] = { const unsigned int Platform_numberOfDefaultScreens = ARRAYSIZE(Platform_defaultScreens); -const ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_VIRT, M_RESIDENT, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 }; - const SignalItem Platform_signals[] = { { .name = " 0 Cancel", .number = 0 }, { .name = " 1 SIGHUP", .number = 1 }, diff --git a/netbsd/Platform.c b/netbsd/Platform.c index 724ab0de..d95be9d9 100644 --- a/netbsd/Platform.c +++ b/netbsd/Platform.c @@ -66,8 +66,6 @@ in the source distribution for its full text. #define prop_number_signed_value prop_number_integer_value #endif -const ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_VIRT, M_RESIDENT, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 }; - ScreenDefaults Platform_defaultScreens[] = { { .name = "Main", diff --git a/netbsd/Platform.h b/netbsd/Platform.h index 407a56f9..428eb15a 100644 --- a/netbsd/Platform.h +++ b/netbsd/Platform.h @@ -34,8 +34,6 @@ in the source distribution for its full text. #define PLATFORM_LONG_OPTIONS \ // End of list -extern const ProcessField Platform_defaultFields[]; - extern ScreenDefaults Platform_defaultScreens[]; extern const unsigned int Platform_numberOfDefaultScreens; diff --git a/pcp/Platform.c b/pcp/Platform.c index f6de7d9c..952ec7ca 100644 --- a/pcp/Platform.c +++ b/pcp/Platform.c @@ -69,10 +69,6 @@ ScreenDefaults Platform_defaultScreens[] = { const unsigned int Platform_numberOfDefaultScreens = ARRAYSIZE(Platform_defaultScreens); -ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_VIRT, M_RESIDENT, (int)M_SHARE, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 }; - -int Platform_numberOfFields = LAST_PROCESSFIELD; - const SignalItem Platform_signals[] = { { .name = " 0 Cancel", .number = 0 }, }; diff --git a/pcp/Platform.h b/pcp/Platform.h index f080df28..242e742e 100644 --- a/pcp/Platform.h +++ b/pcp/Platform.h @@ -62,10 +62,6 @@ extern ScreenDefaults Platform_defaultScreens[]; extern const unsigned int Platform_numberOfDefaultScreens; -extern ProcessField Platform_defaultFields[]; - -extern int Platform_numberOfFields; - extern const SignalItem Platform_signals[]; extern const unsigned int Platform_numberOfSignals;