Commit 2a1c0563 authored by Philip Chimento's avatar Philip Chimento 🚮

js: Remove unused imports

While looking for GI imports to check at configure time, I found that
gi.Soup was imported but never used anywhere. As long as I'm removing
that, I went ahead and removed all the other unused imports.

https://bugzilla.gnome.org/show_bug.cgi?id=766460
parent bd76ecd3
......@@ -21,11 +21,9 @@
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Signals = imports.signals;
const _ = imports.gettext.gettext;
const EvDoc = imports.gi.EvinceDocument;
const GdPrivate = imports.gi.GdPrivate;
const Gdk = imports.gi.Gdk;
const Gio = imports.gi.Gio;
const Goa = imports.gi.Goa;
......@@ -36,12 +34,8 @@ const Tracker = imports.gi.Tracker;
const TrackerControl = imports.gi.TrackerControl;
const ChangeMonitor = imports.changeMonitor;
const Documents = imports.documents;
const Format = imports.format;
const Main = imports.main;
const MainWindow = imports.mainWindow;
const MainToolbar = imports.mainToolbar;
const Manager = imports.manager;
const Miners = imports.miners;
const Notifications = imports.notifications;
const Properties = imports.properties;
......
......@@ -18,26 +18,16 @@
*/
const WebKit = imports.gi.WebKit2;
const Soup = imports.gi.Soup;
const Gd = imports.gi.Gd;
const GdPrivate = imports.gi.GdPrivate;
const Gdk = imports.gi.Gdk;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const _ = imports.gettext.gettext;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Signals = imports.signals;
const Application = imports.application;
const MainToolbar = imports.mainToolbar;
const Searchbar = imports.searchbar;
const Utils = imports.utils;
const View = imports.view;
const WindowMode = imports.windowMode;
const Documents = imports.documents;
const _BLANK_URI = "about:blank";
......
......@@ -24,7 +24,6 @@ const Mainloop = imports.mainloop;
const Application = imports.application;
const MainToolbar = imports.mainToolbar;
const Notifications = imports.notifications;
const Password = imports.password;
const Preview = imports.preview;
const Edit = imports.edit;
......@@ -36,9 +35,6 @@ const Documents = imports.documents;
const EvView = imports.gi.EvinceView;
const LOKView = imports.lokview;
const Gd = imports.gi.Gd;
const Gdk = imports.gi.Gdk;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const _ = imports.gettext.gettext;
......
......@@ -26,12 +26,7 @@ try {
// use this to warn when LO files can't be opened
}
const Soup = imports.gi.Soup;
const Gd = imports.gi.Gd;
const GdPrivate = imports.gi.GdPrivate;
const Gdk = imports.gi.Gdk;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const _ = imports.gettext.gettext;
......@@ -43,10 +38,6 @@ const Tweener = imports.tweener.tweener;
const Application = imports.application;
const ErrorBox = imports.errorBox;
const MainToolbar = imports.mainToolbar;
const Searchbar = imports.searchbar;
const Utils = imports.utils;
const View = imports.view;
const WindowMode = imports.windowMode;
const Documents = imports.documents;
const ZOOM_IN_FACTOR = 1.2;
......
......@@ -39,7 +39,6 @@ pkg.require({ 'EvinceDocument': '3.0',
const Application = imports.application;
const GLib = imports.gi.GLib;
const System = imports.system;
function main(args) {
let application = new Application.Application(pkg.name == 'org.gnome.Books');
......
......@@ -21,16 +21,13 @@
*/
const Gd = imports.gi.Gd;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const Pango = imports.gi.Pango;
const Gettext = imports.gettext;
const _ = imports.gettext.gettext;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Application = imports.application;
const Searchbar = imports.searchbar;
......
......@@ -29,8 +29,6 @@ const Mainloop = imports.mainloop;
const Application = imports.application;
const Embed = imports.embed;
const Selections = imports.selections;
const Utils = imports.utils;
const WindowMode = imports.windowMode;
const _ = imports.gettext.gettext;
......
......@@ -19,13 +19,8 @@
*
*/
const GdPrivate = imports.gi.GdPrivate;
const Gdk = imports.gi.Gdk;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
const Pango = imports.gi.Pango;
const Lang = imports.lang;
const Signals = imports.signals;
......
......@@ -21,14 +21,11 @@
const Gd = imports.gi.Gd;
const Gettext = imports.gettext;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const TrackerControl = imports.gi.TrackerControl;
const _ = imports.gettext.gettext;
const Application = imports.application;
const Utils = imports.utils;
const WindowMode = imports.windowMode;
const Lang = imports.lang;
......
......@@ -19,15 +19,10 @@
*
*/
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const _ = imports.gettext.gettext;
const C_ = imports.gettext.pgettext;
const Application = imports.application;
const Documents = imports.documents;
const Mainloop = imports.mainloop;
const Lang = imports.lang;
......
......@@ -17,18 +17,11 @@
*
*/
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const _ = imports.gettext.gettext;
const Gd = imports.gi.Gd;
const EvDocument = imports.gi.EvinceDocument;
const GdPrivate = imports.gi.GdPrivate;
const Application = imports.application;
const Documents = imports.documents;
const Mainloop = imports.mainloop;
const MainToolbar = imports.mainToolbar;
const Lang = imports.lang;
......
......@@ -17,19 +17,14 @@
*
*/
const EvDocument = imports.gi.EvinceDocument;
const EvView = imports.gi.EvinceView;
const GnomeDesktop = imports.gi.GnomeDesktop;
const GdPrivate = imports.gi.GdPrivate;
const Gdk = imports.gi.Gdk;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const _ = imports.gettext.gettext;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Signals = imports.signals;
const Utils = imports.utils;
const Application = imports.application;
......
......@@ -21,7 +21,6 @@
const EvDocument = imports.gi.EvinceDocument;
const EvView = imports.gi.EvinceView;
const Gd = imports.gi.Gd;
const GdPrivate = imports.gi.GdPrivate;
const Gdk = imports.gi.Gdk;
const Gio = imports.gi.Gio;
......@@ -31,7 +30,6 @@ const _ = imports.gettext.gettext;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Signals = imports.signals;
const Tweener = imports.tweener.tweener;
const Application = imports.application;
......@@ -40,7 +38,6 @@ const MainToolbar = imports.mainToolbar;
const Places = imports.places;
const Searchbar = imports.searchbar;
const Utils = imports.utils;
const View = imports.view;
const WindowMode = imports.windowMode;
const Presentation = imports.presentation;
const Documents = imports.documents;
......
......@@ -20,7 +20,6 @@
*
*/
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const Pango = imports.gi.Pango;
......
......@@ -27,7 +27,6 @@ const Query = imports.query;
const Lang = imports.lang;
const Signals = imports.signals;
const GdPrivate = imports.gi.GdPrivate;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Tracker = imports.gi.Tracker;
......
......@@ -23,16 +23,11 @@ const Gd = imports.gi.Gd;
const Gdk = imports.gi.Gdk;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const Tracker = imports.gi.Tracker;
const _ = imports.gettext.gettext;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Signals = imports.signals;
const Application = imports.application;
const Manager = imports.manager;
const Tweener = imports.tweener.tweener;
const Utils = imports.utils;
const Searchbar = new Lang.Class({
......
......@@ -20,27 +20,21 @@
*
*/
const EvView = imports.gi.EvinceView;
const Gd = imports.gi.Gd;
const Gdk = imports.gi.Gdk;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
const Pango = imports.gi.Pango;
const _ = imports.gettext.gettext;
const C_ = imports.gettext.pgettext;
const Application = imports.application;
const Documents = imports.documents;
const Mainloop = imports.mainloop;
const Manager = imports.manager;
const Notifications = imports.notifications;
const Properties = imports.properties;
const Query = imports.query;
const Sharing = imports.sharing;
const TrackerUtils = imports.trackerUtils;
const Utils = imports.utils;
const WindowMode = imports.windowMode;
const Lang = imports.lang;
......
......@@ -25,15 +25,11 @@ const Signals = imports.signals;
const GdPrivate = imports.gi.GdPrivate;
const GdkPixbuf = imports.gi.GdkPixbuf;
const Gio = imports.gi.Gio;
const Goa = imports.gi.Goa;
const Gtk = imports.gi.Gtk;
const GLib = imports.gi.GLib;
const Tracker = imports.gi.Tracker;
const Application = imports.application;
const Format = imports.format;
const Query = imports.query;
const Search = imports.search;
const TrackerUtils = imports.trackerUtils;
const Utils = imports.utils;
......
......@@ -19,7 +19,6 @@
*
*/
const GLib = imports.gi.GLib;
const Lang = imports.lang;
const Application = imports.application;
......
......@@ -21,12 +21,10 @@
const Gd = imports.gi.Gd;
const GdPrivate = imports.gi.GdPrivate;
const Gdk = imports.gi.Gdk;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const Documents = imports.documents;
const Application = imports.application;
const Lang = imports.lang;
......
......@@ -33,9 +33,7 @@ const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Application = imports.application;
const Documents = imports.documents;
const ErrorBox = imports.errorBox;
const TrackerUtils = imports.trackerUtils;
const WindowMode = imports.windowMode;
const Utils = imports.utils;
......
......@@ -19,13 +19,9 @@
*
*/
const Gdk = imports.gi.Gdk;
const Lang = imports.lang;
const Signals = imports.signals;
const Application = imports.application;
const WindowMode = {
NONE: 0,
DOCUMENTS: 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment