summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2021-04-24 12:06:49 +0200
committerBenBE <BenBE@geshi.org>2021-05-23 09:22:21 +0200
commitc0d02024407411f75a4d7d5b63f26b74c727027b (patch)
tree1252f8c71d108af939daa731bccc71e1bf5125d2 /linux
parent7224d0e0831ee53d5028915f87dffd51ffa0d6fa (diff)
Move LinuxProcess_getCommandStr to Process_getCommandStr
Diffstat (limited to 'linux')
-rw-r--r--linux/LinuxProcess.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c
index bc6f09a8..155bea86 100644
--- a/linux/LinuxProcess.c
+++ b/linux/LinuxProcess.c
@@ -104,17 +104,6 @@ const ProcessFieldData Process_fields[LAST_PROCESSFIELD] = {
[CWD] = { .name ="CWD", .title = "CWD ", .description = "The current working directory of the process", .flags = PROCESS_FLAG_LINUX_CWD, },
};
-/* This function returns the string displayed in Command column, so that sorting
- * happens on what is displayed - whether comm, full path, basename, etc.. So
- * this follows LinuxProcess_writeField(COMM) and LinuxProcess_writeCommand */
-static const char* LinuxProcess_getCommandStr(const Process *this) {
- if ((Process_isUserlandThread(this) && this->settings->showThreadNames) || !this->mergedCommand.str) {
- return this->cmdline;
- }
-
- return this->mergedCommand.str;
-}
-
Process* LinuxProcess_new(const Settings* settings) {
LinuxProcess* this = xCalloc(1, sizeof(LinuxProcess));
Object_setClass(this, Class(LinuxProcess));
@@ -835,6 +824,5 @@ const ProcessClass LinuxProcess_class = {
.compare = Process_compare
},
.writeField = LinuxProcess_writeField,
- .getCommandStr = LinuxProcess_getCommandStr,
.compareByKey = LinuxProcess_compareByKey
};

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