[gnome-usage] system-monitor: remove dead code



commit 8ff5d2503f746070c3f4d31a64c29424f2aacfb4
Author: Christian Kellner <christian kellner me>
Date:   Thu Jul 18 10:45:00 2019 +0200

    system-monitor: remove dead code
    
    In sanity_cmd, the 'cmd' gets assigned, and overwritten, in two
    consecutive lines.

 src/system-monitor.vala | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/src/system-monitor.vala b/src/system-monitor.vala
index d92752b..0605562 100644
--- a/src/system-monitor.vala
+++ b/src/system-monitor.vala
@@ -170,7 +170,6 @@ namespace Usage
             {
                 try {
                     var rgx = new Regex("[^a-zA-Z0-9._-]");
-                    cmd = Path.get_basename(commandline.split(" ")[0]);
                     cmd = rgx.replace(commandline, commandline.length, 0, "");
                 } catch (RegexError e) {
                     warning ("Unable to obtain process command: %s", e.message);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]