[gnome-maps/wip/mlundblad/es6: 9/9] utils: Remove unused function



commit 71daf73688afc3e49c66945a0b67f22b2ef577b2
Author: Marcus Lundblad <ml update uu se>
Date:   Sun Jan 7 22:06:46 2018 +0100

    utils: Remove unused function
    
    Remove the legacy addSignalMethods function, as all
    classes now declares their signals via the
    GObject.registerClass() property map.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722758

 src/utils.js |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/src/utils.js b/src/utils.js
index eb47cf0..ff82067 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -26,7 +26,6 @@ const GdkPixbuf = imports.gi.GdkPixbuf;
 const Geocode = imports.gi.GeocodeGlib;
 const Gio = imports.gi.Gio;
 const Gtk = imports.gi.Gtk;
-const Signals = imports.signals;
 const Soup = imports.gi.Soup;
 
 var METRIC_SYSTEM = 1;
@@ -67,11 +66,6 @@ function once(obj, signal, callback) {
     });
 }
 
-function addSignalMethods(proto) {
-    Signals.addSignalMethods(proto);
-    proto.once = once.bind(undefined, proto);
-}
-
 function loadStyleSheet(file) {
     let provider = new Gtk.CssProvider();
     provider.load_from_file(file);


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