From 0b08ee54bb987774077ef10f49e55e1aab491a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 29 Jun 2019 14:27:03 +0200 Subject: [PATCH] cleanup: Clean up unused imports Spotted by eslint. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/607 --- js/ui/boxpointer.js | 2 +- js/ui/components/polkitAgent.js | 1 - js/ui/extensionDownloader.js | 2 +- js/ui/locatePointer.js | 2 +- js/ui/modalDialog.js | 1 - js/ui/ripples.js | 2 +- js/ui/runDialog.js | 1 - js/ui/status/dwellClick.js | 1 - js/ui/status/location.js | 1 - 9 files changed, 4 insertions(+), 9 deletions(-) diff --git a/js/ui/boxpointer.js b/js/ui/boxpointer.js index 02491e989..422ddbf50 100644 --- a/js/ui/boxpointer.js +++ b/js/ui/boxpointer.js @@ -1,6 +1,6 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- -const { Clutter, GObject, Meta, Shell, St } = imports.gi; +const { Clutter, GObject, Shell, St } = imports.gi; const Main = imports.ui.main; const Tweener = imports.ui.tweener; diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js index a44165df9..8ce266701 100644 --- a/js/ui/components/polkitAgent.js +++ b/js/ui/components/polkitAgent.js @@ -2,7 +2,6 @@ const { AccountsService, Clutter, Gio, GLib, GObject, Pango, PolkitAgent, Polkit, Shell, St } = imports.gi; -const Signals = imports.signals; const Animation = imports.ui.animation; const Dialog = imports.ui.dialog; diff --git a/js/ui/extensionDownloader.js b/js/ui/extensionDownloader.js index fb36ac478..dbbd10237 100644 --- a/js/ui/extensionDownloader.js +++ b/js/ui/extensionDownloader.js @@ -1,6 +1,6 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- -const { Clutter, Gio, GLib, GObject, Soup, St } = imports.gi; +const { Clutter, Gio, GLib, GObject, Soup } = imports.gi; const Config = imports.misc.config; const Dialog = imports.ui.dialog; diff --git a/js/ui/locatePointer.js b/js/ui/locatePointer.js index bdbd200ba..0ab5728cc 100644 --- a/js/ui/locatePointer.js +++ b/js/ui/locatePointer.js @@ -1,6 +1,6 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- -const { Clutter, Gio, GLib, St } = imports.gi; +const { Gio } = imports.gi; const Ripples = imports.ui.ripples; const Main = imports.ui.main; diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js index 5d661e94a..5e35a8e6c 100644 --- a/js/ui/modalDialog.js +++ b/js/ui/modalDialog.js @@ -1,7 +1,6 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- const { Atk, Clutter, GObject, Shell, St } = imports.gi; -const Signals = imports.signals; const Dialog = imports.ui.dialog; const Layout = imports.ui.layout; diff --git a/js/ui/ripples.js b/js/ui/ripples.js index 96abe181a..58e3fa13d 100644 --- a/js/ui/ripples.js +++ b/js/ui/ripples.js @@ -1,6 +1,6 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- -const { Clutter, St } = imports.gi; +const { St } = imports.gi; const Tweener = imports.ui.tweener; // Shamelessly copied from the layout "hotcorner" ripples implementation diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js index 21bd04c3e..8c5cd0792 100644 --- a/js/ui/runDialog.js +++ b/js/ui/runDialog.js @@ -1,7 +1,6 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi; -const Signals = imports.signals; const Main = imports.ui.main; const ModalDialog = imports.ui.modalDialog; diff --git a/js/ui/status/dwellClick.js b/js/ui/status/dwellClick.js index ca7dca6e2..0373bda28 100644 --- a/js/ui/status/dwellClick.js +++ b/js/ui/status/dwellClick.js @@ -1,5 +1,4 @@ const { Clutter, Gio, GLib, GObject, St } = imports.gi; -const Mainloop = imports.mainloop; const PanelMenu = imports.ui.panelMenu; const PopupMenu = imports.ui.popupMenu; diff --git a/js/ui/status/location.js b/js/ui/status/location.js index 7dc3b81f6..3c1957fbb 100644 --- a/js/ui/status/location.js +++ b/js/ui/status/location.js @@ -8,7 +8,6 @@ const PanelMenu = imports.ui.panelMenu; const PopupMenu = imports.ui.popupMenu; const ModalDialog = imports.ui.modalDialog; const PermissionStore = imports.misc.permissionStore; -const Signals = imports.signals; const { loadInterfaceXML } = imports.misc.fileUtils;