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



commit 6b8b62a9b31b1200dda4a82f4fb4f6404f9e1c5e
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.

 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]