[gnome-ostree] js: Remove some unused imports
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] js: Remove some unused imports
- Date: Fri, 5 Jul 2013 22:19:57 +0000 (UTC)
commit 1ff7900134307ce05c0995cea4f4651b54889095
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Jun 19 13:31:06 2013 -0400
js: Remove some unused imports
I wanted to see how many files *really* used JsonDB. Turns out,
not many.
src/js/builtin.js | 1 -
src/js/builtins/autobuilder.js | 4 ----
src/js/builtins/checkout.js | 4 ----
src/js/builtins/git_mirror.js | 8 --------
src/js/builtins/make.js | 8 --------
src/js/builtins/run_task.js | 12 ------------
src/js/builtins/shell.js | 12 ------------
src/js/snapshot.js | 4 ----
src/js/tasks/task-bdiff.js | 1 -
src/js/tasks/task-build.js | 4 +---
src/js/tasks/task-builddisks.js | 1 -
src/js/tasks/task-dummy-delayed.js | 1 -
src/js/tasks/task-dummy-resolve.js | 11 -----------
src/js/tasks/task-resolve.js | 7 -------
src/js/tasks/task-zdisks.js | 15 ---------------
15 files changed, 1 insertions(+), 92 deletions(-)
---
diff --git a/src/js/builtin.js b/src/js/builtin.js
index 9eaa09d..0c10e56 100644
--- a/src/js/builtin.js
+++ b/src/js/builtin.js
@@ -18,7 +18,6 @@
const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
const Lang = imports.lang;
-const Format = imports.format;
const GSystem = imports.gi.GSystem;
diff --git a/src/js/builtins/autobuilder.js b/src/js/builtins/autobuilder.js
index ac119c7..105fb6d 100644
--- a/src/js/builtins/autobuilder.js
+++ b/src/js/builtins/autobuilder.js
@@ -18,15 +18,11 @@
const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
const Lang = imports.lang;
-const Format = imports.format;
-
-const GSystem = imports.gi.GSystem;
const Builtin = imports.builtin;
const Task = imports.task;
const JsonDB = imports.jsondb;
const ProcUtil = imports.procutil;
-const JsonUtil = imports.jsonutil;
const Snapshot = imports.snapshot;
const loop = GLib.MainLoop.new(null, true);
diff --git a/src/js/builtins/checkout.js b/src/js/builtins/checkout.js
index 5dc3b77..3574b8b 100644
--- a/src/js/builtins/checkout.js
+++ b/src/js/builtins/checkout.js
@@ -15,22 +15,18 @@
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
-const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
const Lang = imports.lang;
-const Format = imports.format;
const GSystem = imports.gi.GSystem;
const Builtin = imports.builtin;
-const JsonDB = imports.jsondb;
const ProcUtil = imports.procutil;
const JsonUtil = imports.jsonutil;
const Snapshot = imports.snapshot;
const Params = imports.params;
const BuildUtil = imports.buildutil;
const Vcs = imports.vcs;
-const ArgParse = imports.argparse;
function _checkoutOneComponent(mirrordir, patchdir, component, cancellable, params) {
params = Params.parse(params, { checkoutdir: null,
diff --git a/src/js/builtins/git_mirror.js b/src/js/builtins/git_mirror.js
index 68ea408..11e96bc 100644
--- a/src/js/builtins/git_mirror.js
+++ b/src/js/builtins/git_mirror.js
@@ -15,19 +15,13 @@
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
-const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
const Lang = imports.lang;
-const Format = imports.format;
const Builtin = imports.builtin;
-const ProcUtil = imports.procutil;
const Snapshot = imports.snapshot;
-const BuildUtil = imports.buildutil;
const Vcs = imports.vcs;
const JsonUtil = imports.jsonutil;
-const JsonDB = imports.jsondb;
-const ArgParse = imports.argparse;
const GitMirror = new Lang.Class({
Name: 'GitMirror',
@@ -51,8 +45,6 @@ const GitMirror = new Lang.Class({
execute: function(args, loop, cancellable) {
this._initWorkdir(args.workdir, cancellable);
- let parser = new ArgParse.ArgumentParser();
-
if (!args.timeout_sec)
args.timeout_sec = 0;
diff --git a/src/js/builtins/make.js b/src/js/builtins/make.js
index 110b165..7b45705 100644
--- a/src/js/builtins/make.js
+++ b/src/js/builtins/make.js
@@ -18,19 +18,11 @@
const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
const Lang = imports.lang;
-const Format = imports.format;
const GSystem = imports.gi.GSystem;
const Builtin = imports.builtin;
const Task = imports.task;
-const JsonDB = imports.jsondb;
-const ProcUtil = imports.procutil;
-const JsonUtil = imports.jsonutil;
-const Snapshot = imports.snapshot;
-const BuildUtil = imports.buildutil;
-const Vcs = imports.vcs;
-const ArgParse = imports.argparse;
const Make = new Lang.Class({
Name: 'Make',
diff --git a/src/js/builtins/run_task.js b/src/js/builtins/run_task.js
index d3f8b87..396c716 100644
--- a/src/js/builtins/run_task.js
+++ b/src/js/builtins/run_task.js
@@ -15,22 +15,10 @@
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
-const GLib = imports.gi.GLib;
-const Gio = imports.gi.Gio;
const Lang = imports.lang;
-const Format = imports.format;
-
-const GSystem = imports.gi.GSystem;
const Builtin = imports.builtin;
const Task = imports.task;
-const JsonDB = imports.jsondb;
-const ProcUtil = imports.procutil;
-const JsonUtil = imports.jsonutil;
-const Snapshot = imports.snapshot;
-const BuildUtil = imports.buildutil;
-const Vcs = imports.vcs;
-const ArgParse = imports.argparse;
const RunTask = new Lang.Class({
Name: 'RunTask',
diff --git a/src/js/builtins/shell.js b/src/js/builtins/shell.js
index 31b42a4..7c91940 100644
--- a/src/js/builtins/shell.js
+++ b/src/js/builtins/shell.js
@@ -15,21 +15,9 @@
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
-const GLib = imports.gi.GLib;
-const Gio = imports.gi.Gio;
const Lang = imports.lang;
-const Format = imports.format;
-
-const GSystem = imports.gi.GSystem;
const Builtin = imports.builtin;
-const JsonDB = imports.jsondb;
-const ProcUtil = imports.procutil;
-const JsonUtil = imports.jsonutil;
-const Snapshot = imports.snapshot;
-const BuildUtil = imports.buildutil;
-const Vcs = imports.vcs;
-const ArgParse = imports.argparse;
const Shell = new Lang.Class({
Name: 'Shell',
diff --git a/src/js/snapshot.js b/src/js/snapshot.js
index dfa9bee..281ee6e 100644
--- a/src/js/snapshot.js
+++ b/src/js/snapshot.js
@@ -16,12 +16,8 @@
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
-const Gio = imports.gi.Gio;
const Lang = imports.lang;
-const JsonDB = imports.jsondb;
-const JsonUtil = imports.jsonutil;
-const Vcs = imports.vcs;
const Params = imports.params;
function _componentDict(snapshot) {
diff --git a/src/js/tasks/task-bdiff.js b/src/js/tasks/task-bdiff.js
index 4b25dc0..a30e341 100644
--- a/src/js/tasks/task-bdiff.js
+++ b/src/js/tasks/task-bdiff.js
@@ -24,7 +24,6 @@ const GSystem = imports.gi.GSystem;
const Builtin = imports.builtin;
const Task = imports.task;
-const JsonDB = imports.jsondb;
const ProcUtil = imports.procutil;
const StreamUtil = imports.streamutil;
const JsonUtil = imports.jsonutil;
diff --git a/src/js/tasks/task-build.js b/src/js/tasks/task-build.js
index dccabc7..eabc61f 100644
--- a/src/js/tasks/task-build.js
+++ b/src/js/tasks/task-build.js
@@ -22,19 +22,17 @@ const Format = imports.format;
const GSystem = imports.gi.GSystem;
-const Builtin = imports.builtin;
const Task = imports.task;
const Params = imports.params;
-const JsonDB = imports.jsondb;
const FileUtil = imports.fileutil;
const AsyncUtil = imports.asyncutil;
const ProcUtil = imports.procutil;
const StreamUtil = imports.streamutil;
const JsonUtil = imports.jsonutil;
+const JsonDB = imports.jsondb;
const Snapshot = imports.snapshot;
const BuildUtil = imports.buildutil;
const Vcs = imports.vcs;
-const ArgParse = imports.argparse;
const OPT_COMMON_CFLAGS = {'i686': '-O2 -g -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables',
'x86_64': '-O2 -g -m64 -mtune=generic'};
diff --git a/src/js/tasks/task-builddisks.js b/src/js/tasks/task-builddisks.js
index d3115f3..961a07f 100644
--- a/src/js/tasks/task-builddisks.js
+++ b/src/js/tasks/task-builddisks.js
@@ -29,7 +29,6 @@ const Task = imports.task;
const ProcUtil = imports.procutil;
const BuildUtil = imports.buildutil;
const LibQA = imports.libqa;
-const JsonDB = imports.jsondb;
const VersionedDir = imports.versioneddir;
const JsonUtil = imports.jsonutil;
const JSUtil = imports.jsutil;
diff --git a/src/js/tasks/task-dummy-delayed.js b/src/js/tasks/task-dummy-delayed.js
index df07d74..fa9c19c 100644
--- a/src/js/tasks/task-dummy-delayed.js
+++ b/src/js/tasks/task-dummy-delayed.js
@@ -22,7 +22,6 @@ const Format = imports.format;
const GSystem = imports.gi.GSystem;
-const JsonDB = imports.jsondb;
const Builtin = imports.builtin;
const Task = imports.task;
const ProcUtil = imports.procutil;
diff --git a/src/js/tasks/task-dummy-resolve.js b/src/js/tasks/task-dummy-resolve.js
index b4a9034..3ea78de 100644
--- a/src/js/tasks/task-dummy-resolve.js
+++ b/src/js/tasks/task-dummy-resolve.js
@@ -16,21 +16,10 @@
// Boston, MA 02111-1307, USA.
const GLib = imports.gi.GLib;
-const Gio = imports.gi.Gio;
const Lang = imports.lang;
-const Format = imports.format;
-
-const GSystem = imports.gi.GSystem;
const JsonDB = imports.jsondb;
-const Builtin = imports.builtin;
const Task = imports.task;
-const ProcUtil = imports.procutil;
-const JsonUtil = imports.jsonutil;
-const Snapshot = imports.snapshot;
-const BuildUtil = imports.buildutil;
-const Vcs = imports.vcs;
-const ArgParse = imports.argparse;
const TaskDummyResolve = new Lang.Class({
Name: "TaskDummyResolve",
diff --git a/src/js/tasks/task-resolve.js b/src/js/tasks/task-resolve.js
index f6ae101..242749e 100644
--- a/src/js/tasks/task-resolve.js
+++ b/src/js/tasks/task-resolve.js
@@ -15,22 +15,15 @@
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
-const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
const Lang = imports.lang;
-const Format = imports.format;
-
-const GSystem = imports.gi.GSystem;
const JsonDB = imports.jsondb;
-const Builtin = imports.builtin;
const Task = imports.task;
const ProcUtil = imports.procutil;
const JsonUtil = imports.jsonutil;
const Snapshot = imports.snapshot;
-const BuildUtil = imports.buildutil;
const Vcs = imports.vcs;
-const ArgParse = imports.argparse;
const TaskResolve = new Lang.Class({
Name: "TaskResolve",
diff --git a/src/js/tasks/task-zdisks.js b/src/js/tasks/task-zdisks.js
index d9a45e1..334c19c 100644
--- a/src/js/tasks/task-zdisks.js
+++ b/src/js/tasks/task-zdisks.js
@@ -16,23 +16,8 @@
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
-const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
const Lang = imports.lang;
-const Format = imports.format;
-
-const GSystem = imports.gi.GSystem;
-
-const Builtin = imports.builtin;
-const ArgParse = imports.argparse;
-const Task = imports.task;
-const ProcUtil = imports.procutil;
-const BuildUtil = imports.buildutil;
-const LibQA = imports.libqa;
-const JsonDB = imports.jsondb;
-const JsonUtil = imports.jsonutil;
-const JSUtil = imports.jsutil;
-const GuestFish = imports.guestfish;
const BuildDisks = imports.tasks['task-builddisks'];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]