[gnome-usage] Drop support for monitoring disk i/o



commit 5fbb8b35a8c23f22f0200020a8397a09ee859861
Author: Petr Štětka <pstetka redhat com>
Date:   Wed Apr 19 16:50:19 2017 +0200

    Drop support for monitoring disk i/o

 src/disk-graph.vala            |   18 ------------------
 src/disk-sub-view.vala         |   19 -------------------
 src/graph-stack-switcher.vala  |    3 +--
 src/graph-switcher-button.vala |    6 ------
 src/meson.build                |    2 --
 src/performance-view.vala      |    3 +--
 src/process-dialog.vala        |    2 --
 7 files changed, 2 insertions(+), 51 deletions(-)
---
diff --git a/src/graph-stack-switcher.vala b/src/graph-stack-switcher.vala
index 06950a3..0a1a1f2 100644
--- a/src/graph-stack-switcher.vala
+++ b/src/graph-stack-switcher.vala
@@ -23,8 +23,7 @@ namespace Usage
 
             buttons = {
                 new GraphSwitcherButton.processor(_("Processor")),
-                new GraphSwitcherButton.memory(_("Memory")),
-                new GraphSwitcherButton.disk(_("Disk I/O"))
+                new GraphSwitcherButton.memory(_("Memory"))
             };
 
            foreach(Gtk.ToggleButton button in buttons)
diff --git a/src/graph-switcher-button.vala b/src/graph-switcher-button.vala
index 0623fca..99655d0 100644
--- a/src/graph-switcher-button.vala
+++ b/src/graph-switcher-button.vala
@@ -14,12 +14,6 @@ namespace Usage
             child = createContent(memory_graph, label);
         }
 
-        public GraphSwitcherButton.disk(string label)
-        {
-            Rg.Graph disk_graph = new DiskGraph();
-            child = createContent(disk_graph, label);
-        }
-
         private Gtk.Box createContent(Rg.Graph graph, string label_text)
         {
             graph.height_request = 80;
diff --git a/src/meson.build b/src/meson.build
index 75c7dd9..e9f338a 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -6,8 +6,6 @@ vala_sources = [
     'cpu-monitor.vala',
     'cpu-sub-view.vala',
     'data-view.vala',
-    'disk-graph.vala',
-    'disk-sub-view.vala',
     'gnome-usage.vala',
     'graph-block-row.vala',
     'graph-block.vala',
diff --git a/src/performance-view.vala b/src/performance-view.vala
index 1795009..184d7d3 100644
--- a/src/performance-view.vala
+++ b/src/performance-view.vala
@@ -16,8 +16,7 @@ namespace Usage
             sub_views = new View[]
             {
                 new ProcessorSubView(),
-                new MemorySubView(),
-                new DiskSubView()
+                new MemorySubView()
             };
 
             search_bar = new Gtk.SearchBar();
diff --git a/src/process-dialog.vala b/src/process-dialog.vala
index f372dc0..fb09df0 100644
--- a/src/process-dialog.vala
+++ b/src/process-dialog.vala
@@ -9,7 +9,6 @@ namespace Usage
        string process;
         GraphBlock processor_graph_block;
         GraphBlock memory_graph_block;
-        GraphBlock disk_graph_block;
 
        public ProcessDialog(Pid pid, string app_name, string process)
        {
@@ -40,7 +39,6 @@ namespace Usage
 
             grid.attach(processor_graph_block, 0, 0, 1, 1);
             grid.attach(memory_graph_block, 1, 0, 1, 1);
-            grid.attach(disk_graph_block, 2, 0, 1, 1);
             content.add(grid);
             content.show_all();
 


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