summaryrefslogtreecommitdiffstats
path: root/Settings.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-11-15 20:07:24 +0100
committerBenBE <BenBE@geshi.org>2020-11-15 22:54:14 +0100
commitad72b747fa526b663c61d5cf4efc7c66e629c500 (patch)
tree25bf560b25ccf22a69e421017022b2d081be7a85 /Settings.c
parent9f67b95308d11ee922e92f0649c2796bac58c1c5 (diff)
Drop hideThreads Setting
It is only used to read process directories on RedHat beginning with a dot. Unconditionally accept directories with a starting dot.
Diffstat (limited to 'Settings.c')
-rw-r--r--Settings.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Settings.c b/Settings.c
index 1ecee569..ea32ebbe 100644
--- a/Settings.c
+++ b/Settings.c
@@ -141,8 +141,6 @@ static bool Settings_read(Settings* this, const char* fileName, int initialCpuCo
this->direction = atoi(option[1]);
} else if (String_eq(option[0], "tree_view")) {
this->treeView = atoi(option[1]);
- } else if (String_eq(option[0], "hide_threads")) {
- this->hideThreads = atoi(option[1]);
} else if (String_eq(option[0], "hide_kernel_threads")) {
this->hideKernelThreads = atoi(option[1]);
} else if (String_eq(option[0], "hide_userland_threads")) {
@@ -259,7 +257,6 @@ bool Settings_write(Settings* this) {
// This "-1" is for compatibility with the older enum format.
fprintf(fd, "sort_key=%d\n", (int) this->sortKey - 1);
fprintf(fd, "sort_direction=%d\n", (int) this->direction);
- fprintf(fd, "hide_threads=%d\n", (int) this->hideThreads);
fprintf(fd, "hide_kernel_threads=%d\n", (int) this->hideKernelThreads);
fprintf(fd, "hide_userland_threads=%d\n", (int) this->hideUserlandThreads);
fprintf(fd, "shadow_other_users=%d\n", (int) this->shadowOtherUsers);
@@ -295,7 +292,6 @@ Settings* Settings_new(int initialCpuCount) {
this->sortKey = PERCENT_CPU;
this->direction = 1;
- this->hideThreads = false;
this->shadowOtherUsers = false;
this->showThreadNames = false;
this->hideKernelThreads = false;

© 2014-2024 Faster IT GmbH | imprint | privacy policy