[gnome-maps] Utils: remove addJSSignalMethods



commit 63637df53d834a8a63f41f99f792d5cb2f66154f
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Tue Jul 23 22:40:47 2013 +0200

    Utils: remove addJSSignalMethods
    
    This code was added in the beginning phases of the project but is never
    actively used. The point seem to be to make a difference between signals
    that come from gobjects and those that come from pure js-objects.
    We can easily resurrect this later if we find a reason for this.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704537

 src/application.js |    2 +-
 src/utils.js       |    7 -------
 2 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index e56318d..65867a3 100644
--- a/src/application.js
+++ b/src/application.js
@@ -109,4 +109,4 @@ const Application = new Lang.Class({
         this._mainWindow = null;
     }
 });
-Utils.addJSSignalMethods(Application.prototype);
+Signals.addSignalMethods(Application.prototype);
diff --git a/src/utils.js b/src/utils.js
index 95f2292..07af316 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -50,13 +50,6 @@ function debug(str) {
         log('DEBUG: ' + str);
 }
 
-function addJSSignalMethods(proto) {
-    proto.connectJS = Signals._connect;
-    proto.disconnectJS = Signals._disconnect;
-    proto.emitJS = Signals._emit;
-    proto.disconnectAllJS = Signals._disconnectAll;
-}
-
 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]