[gjs: 3/7] Remove dead code
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 3/7] Remove dead code
- Date: Sun, 25 Mar 2018 18:34:35 +0000 (UTC)
commit 19c0d96157ef6ed018925d56645f70c5bae09f2f
Author: Philip Chimento <philip chimento gmail com>
Date: Tue Mar 20 00:57:21 2018 -0700
Remove dead code
This code was marked as unused by eslint.
installed-tests/js/testEverythingBasic.js | 1 -
modules/format.js | 1 -
modules/overrides/GLib.js | 1 -
modules/overrides/Gio.js | 12 ------------
modules/tweener/tweener.js | 1 -
5 files changed, 16 deletions(-)
---
diff --git a/installed-tests/js/testEverythingBasic.js b/installed-tests/js/testEverythingBasic.js
index f2789b5..427b94c 100644
--- a/installed-tests/js/testEverythingBasic.js
+++ b/installed-tests/js/testEverythingBasic.js
@@ -7,7 +7,6 @@ const Gdk = imports.gi.Gdk;
const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
const GObject = imports.gi.GObject;
-const Lang = imports.lang;
describe('Life, the Universe and Everything', function () {
it('includes booleans', function () {
diff --git a/modules/format.js b/modules/format.js
index 246bfbf..70dcfd0 100644
--- a/modules/format.js
+++ b/modules/format.js
@@ -41,7 +41,6 @@ function vprintf(str, args) {
switch (genericGroup) {
case '%':
return '%';
- break;
case 's':
s = String(getArg());
break;
diff --git a/modules/overrides/GLib.js b/modules/overrides/GLib.js
index 70528c3..f361bbe 100644
--- a/modules/overrides/GLib.js
+++ b/modules/overrides/GLib.js
@@ -21,7 +21,6 @@
const ByteArray = imports.byteArray;
let GLib;
-let originalVariantClass;
const SIMPLE_TYPES = ['b', 'y', 'n', 'q', 'i', 'u', 'x', 't', 'h', 'd', 's', 'o', 'g'];
diff --git a/modules/overrides/Gio.js b/modules/overrides/Gio.js
index d705758..3b5bc0c 100644
--- a/modules/overrides/Gio.js
+++ b/modules/overrides/Gio.js
@@ -19,23 +19,11 @@
// IN THE SOFTWARE.
var GLib = imports.gi.GLib;
-var GObject = imports.gi.GObject;
var GjsPrivate = imports.gi.GjsPrivate;
var Lang = imports.lang;
var Signals = imports.signals;
var Gio;
-function _signatureLength(sig) {
- var counter = 0;
- // make it an array
- var signature = Array.prototype.slice.call(sig);
- while (signature.length) {
- GLib._read_single_type(sig);
- counter++;
- }
- return counter;
-}
-
function _proxyInvoker(methodName, sync, inSignature, arg_array) {
var replyFunc;
var flags = 0;
diff --git a/modules/tweener/tweener.js b/modules/tweener/tweener.js
index 15cb89d..31aaecb 100644
--- a/modules/tweener/tweener.js
+++ b/modules/tweener/tweener.js
@@ -45,7 +45,6 @@ const Signals = imports.signals;
var _inited = false;
var _engineExists = false;
-var _transitionList = null;
var _tweenList = null;
var _timeScale = 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]