[gnome-control-center/wip/oholy/info-unused] info: Remove unused gsd-disk-space-helper.[h|c]



commit 743677c560547d6b7ebc819e7f13d7ce3742d671
Author: Ondrej Holy <oholy redhat com>
Date:   Wed Mar 13 13:19:31 2019 +0100

    info: Remove unused gsd-disk-space-helper.[h|c]
    
    GNOME/gnome-control-center!387 ported info panel to use UDisks2 instead
    of GUnixMounts and thus the helpers from gsd-disk-space-helper.[h|c] are
    no more needed.

 panels/info/cc-info-default-apps-panel.c    |   2 -
 panels/info/cc-info-overview-panel.c        |   2 -
 panels/info/cc-info-removable-media-panel.c |   2 -
 panels/info/gsd-disk-space-helper.c         | 156 ----------------------------
 panels/info/gsd-disk-space-helper.h         |  38 -------
 panels/info/meson.build                     |  29 +-----
 6 files changed, 1 insertion(+), 228 deletions(-)
---
diff --git a/panels/info/cc-info-default-apps-panel.c b/panels/info/cc-info-default-apps-panel.c
index 107c4f6ac..414131c80 100644
--- a/panels/info/cc-info-default-apps-panel.c
+++ b/panels/info/cc-info-default-apps-panel.c
@@ -42,8 +42,6 @@
 #include <gdk/gdkx.h>
 #endif
 
-#include "gsd-disk-space-helper.h"
-
 #include "cc-info-default-apps-panel.h"
 
 typedef struct
diff --git a/panels/info/cc-info-overview-panel.c b/panels/info/cc-info-overview-panel.c
index ff47c1fef..4541986db 100644
--- a/panels/info/cc-info-overview-panel.c
+++ b/panels/info/cc-info-overview-panel.c
@@ -47,8 +47,6 @@
 #include <gdk/gdkx.h>
 #endif
 
-#include "gsd-disk-space-helper.h"
-
 #include "cc-info-overview-panel.h"
 
 
diff --git a/panels/info/cc-info-removable-media-panel.c b/panels/info/cc-info-removable-media-panel.c
index ea8dc500e..fea667ceb 100644
--- a/panels/info/cc-info-removable-media-panel.c
+++ b/panels/info/cc-info-removable-media-panel.c
@@ -42,8 +42,6 @@
 #include <gdk/gdkx.h>
 #endif
 
-#include "gsd-disk-space-helper.h"
-
 #include "cc-info-removable-media-panel.h"
 
 
diff --git a/panels/info/meson.build b/panels/info/meson.build
index c54e5fdaf..911abbe9f 100644
--- a/panels/info/meson.build
+++ b/panels/info/meson.build
@@ -33,11 +33,7 @@ cflags += [
   '-DGNOMELOCALEDIR="@0@"'.format(control_center_localedir)
 ]
 
-gsd_headers = ['gsd-disk-space-helper.h']
-
-gsd_sources = ['gsd-disk-space-helper.c']
-
-sources = files(gsd_sources) + files(
+sources = files(
   'cc-info-default-apps-panel.c',
   'cc-info-overview-panel.c',
   'cc-info-removable-media-panel.c',
@@ -73,26 +69,3 @@ info_panel_lib = static_library(
   c_args: cflags
 )
 panels_libs += info_panel_lib
-
-# FIXME: workaround for updating different sources code
-input_dir = join_paths(meson.source_root(), '..', 'gnome-settings-daemon', 'plugins', 'housekeeping')
-
-script_conf = configuration_data()
-script_conf.set('program', update_from_gsd.path())
-script_conf.set('input_dir', input_dir)
-script_conf.set('working_dir', meson.current_source_dir())
-script_conf.set('source_files', ' '.join(gsd_sources + gsd_headers))
-script_conf.set('source_message', 'info: Update from gnome-settings-daemon')
-
-script_name = 'update-info-from-gsd'
-
-script = configure_file(
-  input: update_from_gsd_in,
-  output: script_name + '.sh',
-  configuration: script_conf
-)
-
-run_target(
-  script_name,
-  command: script
-)


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