[gnome-maps/wip/mlundblad/es6: 2/2] utils: Remove unused function
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/es6: 2/2] utils: Remove unused function
- Date: Sun, 21 Jan 2018 08:01:39 +0000 (UTC)
commit 3bb91de1b7da4c7fadaeffb152ce931e94cbdc5d
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]