[gnome-maps/wip/refactor2: 1/9] Cleanup: Remove unused imports
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/refactor2: 1/9] Cleanup: Remove unused imports
- Date: Thu, 16 Oct 2014 05:20:03 +0000 (UTC)
commit 21062c33e8930507e5b705f7827f09b2c90c0374
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date: Mon Oct 13 19:18:40 2014 +0200
Cleanup: Remove unused imports
We import a bunch of modules we don't use in a lot of files. Remove all
such imports.
https://bugzilla.gnome.org/show_bug.cgi?id=699967
src/application.js | 4 ----
src/contextMenu.js | 1 -
src/geoclue.js | 5 -----
src/mainWindow.js | 2 --
src/mapMarker.js | 1 -
src/mapView.js | 8 --------
src/placeStore.js | 2 --
src/routeQuery.js | 2 --
src/searchResultMarker.js | 1 -
src/sidebar.js | 5 -----
src/turnPointBubble.js | 3 ---
src/turnPointMarker.js | 3 ---
src/userLocationMarker.js | 5 -----
src/utils.js | 1 -
14 files changed, 0 insertions(+), 43 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 4e26fe2..84a9627 100644
--- a/src/application.js
+++ b/src/application.js
@@ -22,8 +22,6 @@
*/
const Lang = imports.lang;
-const Mainloop = imports.mainloop;
-const Signals = imports.signals;
const Gettext = imports.gettext;
const _ = imports.gettext.gettext;
@@ -32,12 +30,10 @@ const Gio = imports.gi.Gio;
const Gtk = imports.gi.Gtk;
const GLib = imports.gi.GLib;
-const Main = imports.main;
const Format = imports.format;
const Geoclue = imports.geoclue;
const GeocodeService = imports.geocodeService;
const MainWindow = imports.mainWindow;
-const Notification = imports.notification;
const NotificationManager = imports.notificationManager;
const Utils = imports.utils;
const Path = imports.path;
diff --git a/src/contextMenu.js b/src/contextMenu.js
index 2db05e9..d6e573b 100644
--- a/src/contextMenu.js
+++ b/src/contextMenu.js
@@ -20,7 +20,6 @@
* Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
*/
-const Gtk = imports.gi.Gtk;
const Clutter = imports.gi.Clutter;
const Geocode = imports.gi.GeocodeGlib;
diff --git a/src/geoclue.js b/src/geoclue.js
index 4b4b6e5..8fdf9c0 100644
--- a/src/geoclue.js
+++ b/src/geoclue.js
@@ -20,19 +20,14 @@
* Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
*/
-const GLib = imports.gi.GLib;
const GObject = imports.gi.GObject;
const Gio = imports.gi.Gio;
const Geocode = imports.gi.GeocodeGlib;
const Lang = imports.lang;
-const Mainloop = imports.mainloop;
const Application = imports.application;
const Utils = imports.utils;
-const Path = imports.path;
-const Signals = imports.signals;
-const _ = imports.gettext.gettext;
const ManagerInterface = '<node> \
<interface name="org.freedesktop.GeoClue2.Manager"> \
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 4863ab9..e804a67 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -24,7 +24,6 @@
const Gdk = imports.gi.Gdk;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
-const Champlain = imports.gi.Champlain;
const GObject = imports.gi.GObject;
const Lang = imports.lang;
@@ -35,7 +34,6 @@ const MapView = imports.mapView;
const LayersPopover = imports.layersPopover;
const ContextMenu = imports.contextMenu;
const PlaceEntry = imports.placeEntry;
-const PlaceStore = imports.placeStore;
const Sidebar = imports.sidebar;
const Utils = imports.utils;
const Config = imports.config;
diff --git a/src/mapMarker.js b/src/mapMarker.js
index ea47ff3..ba93f8e 100644
--- a/src/mapMarker.js
+++ b/src/mapMarker.js
@@ -22,7 +22,6 @@
const Cairo = imports.gi.cairo;
const Champlain = imports.gi.Champlain;
-const Geocode = imports.gi.GeocodeGlib;
const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
diff --git a/src/mapView.js b/src/mapView.js
index f500a37..c38485c 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -21,27 +21,19 @@
*/
const Clutter = imports.gi.Clutter;
-const Cogl = imports.gi.Cogl;
-const Gdk = imports.gi.Gdk;
-const GdkPixbuf = imports.gi.GdkPixbuf;
-const Gtk = imports.gi.Gtk;
const GtkChamplain = imports.gi.GtkChamplain;
const Champlain = imports.gi.Champlain;
const Geocode = imports.gi.GeocodeGlib;
const GObject = imports.gi.GObject;
const Lang = imports.lang;
-const Mainloop = imports.mainloop;
-const Signals = imports.signals;
const Application = imports.application;
const Utils = imports.utils;
-const Path = imports.path;
const MapWalker = imports.mapWalker;
const SearchResultMarker = imports.searchResultMarker;
const TurnPointMarker = imports.turnPointMarker;
const UserLocationMarker = imports.userLocationMarker;
-const _ = imports.gettext.gettext;
const MapType = {
STREET: Champlain.MAP_SOURCE_OSM_MAPQUEST,
diff --git a/src/placeStore.js b/src/placeStore.js
index fd9935d..34df0d0 100644
--- a/src/placeStore.js
+++ b/src/placeStore.js
@@ -21,12 +21,10 @@
const Geocode = imports.gi.GeocodeGlib;
const GLib = imports.gi.GLib;
const GObject = imports.gi.GObject;
-const Gio = imports.gi.Gio;
const GdkPixbuf = imports.gi.GdkPixbuf;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
-const Mainloop = imports.mainloop;
const Utils = imports.utils;
const Application = imports.application;
diff --git a/src/routeQuery.js b/src/routeQuery.js
index 4ddc111..7f58b16 100644
--- a/src/routeQuery.js
+++ b/src/routeQuery.js
@@ -25,8 +25,6 @@ const GObject = imports.gi.GObject;
const Lang = imports.lang;
-const Utils = imports.utils;
-
const Transportation = {
CAR: 0,
BIKE: 1,
diff --git a/src/searchResultMarker.js b/src/searchResultMarker.js
index b28240e..a4fc7f8 100644
--- a/src/searchResultMarker.js
+++ b/src/searchResultMarker.js
@@ -23,7 +23,6 @@
const Lang = imports.lang;
const MapMarker = imports.mapMarker;
-const Path = imports.path;
const SearchResultBubble = imports.searchResultBubble;
const Utils = imports.utils;
diff --git a/src/sidebar.js b/src/sidebar.js
index 2872384..1eb4673 100644
--- a/src/sidebar.js
+++ b/src/sidebar.js
@@ -21,19 +21,14 @@
* Mattias Bengtsson <mattias jc bengtsson gmail com>
*/
-const Geocode = imports.gi.GeocodeGlib;
-const GLib = imports.gi.GLib;
const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
const _ = imports.gettext.gettext;
const Application = imports.application;
-const PlaceStore = imports.placeStore;
const PlaceEntry = imports.placeEntry;
-const Route = imports.route;
const RouteQuery = imports.routeQuery;
-const SearchPopup = imports.searchPopup;
const Utils = imports.utils;
const Sidebar = new Lang.Class({
diff --git a/src/turnPointBubble.js b/src/turnPointBubble.js
index 04433e9..9168955 100644
--- a/src/turnPointBubble.js
+++ b/src/turnPointBubble.js
@@ -20,9 +20,6 @@
* Author: Dario Di Nucci <linkin88mail gmail com>
*/
-const Geocode = imports.gi.GeocodeGlib;
-const Gtk = imports.gi.Gtk;
-
const Lang = imports.lang;
const MapBubble = imports.mapBubble;
diff --git a/src/turnPointMarker.js b/src/turnPointMarker.js
index 07fdd2a..0abadc0 100644
--- a/src/turnPointMarker.js
+++ b/src/turnPointMarker.js
@@ -21,14 +21,11 @@
*/
const Geocode = imports.gi.GeocodeGlib;
-const GObject = imports.gi.GObject;
const Lang = imports.lang;
const Application = imports.application;
const MapMarker = imports.mapMarker;
-const Path = imports.path;
-const Route = imports.route;
const TurnPointBubble = imports.turnPointBubble;
const Utils = imports.utils;
diff --git a/src/userLocationMarker.js b/src/userLocationMarker.js
index 970acd9..edd16fd 100644
--- a/src/userLocationMarker.js
+++ b/src/userLocationMarker.js
@@ -22,17 +22,12 @@
const Champlain = imports.gi.Champlain;
const Clutter = imports.gi.Clutter;
-const GObject = imports.gi.GObject;
-const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
-const Mainloop = imports.mainloop;
const MapMarker = imports.mapMarker;
-const Path = imports.path;
const UserLocationBubble = imports.userLocationBubble;
const Utils = imports.utils;
-const _ = imports.gettext.gettext;
const AccuracyCircleMarker = new Lang.Class({
Name: 'AccuracyCircleMarker',
diff --git a/src/utils.js b/src/utils.js
index 437ab4f..d6ce833 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -21,7 +21,6 @@
* Zeeshan Ali (Khattak) <zeeshanak gnome org>
*/
-const Lang = imports.lang;
const Gdk = imports.gi.Gdk;
const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]