diff options
Diffstat (limited to 'js')
29 files changed, 0 insertions, 32 deletions
diff --git a/js/gulp/bundle.js b/js/gulp/bundle.js index d4815677218..b592f8cd068 100644 --- a/js/gulp/bundle.js +++ b/js/gulp/bundle.js @@ -318,7 +318,6 @@ function bundle(args) var moduleEpilogue = " }());\n"; - var sb = new StringBuffer(); sb.write(preamble); diff --git a/js/gulpfile.js b/js/gulpfile.js index 2ddc4de9dcd..3adb059be09 100644 --- a/js/gulpfile.js +++ b/js/gulpfile.js @@ -503,7 +503,6 @@ gulp.task("lint:js", ["build"], jshint.reporter("default")], cb); }); - var buildDepends = ["dist", "test"]; var cleanDepends = ["test:clean", "common:clean"]; diff --git a/js/src/Ice/Address.js b/js/src/Ice/Address.js index 26d24658c09..ed9cc9e3b7c 100644 --- a/js/src/Ice/Address.js +++ b/js/src/Ice/Address.js @@ -7,7 +7,6 @@ // // ********************************************************************** - const Ice = require("../Ice/ModuleRegistry").Ice; class Address diff --git a/js/src/Ice/DefaultsAndOverrides.js b/js/src/Ice/DefaultsAndOverrides.js index 51b1f9a084f..26c10ad2cd4 100644 --- a/js/src/Ice/DefaultsAndOverrides.js +++ b/js/src/Ice/DefaultsAndOverrides.js @@ -7,7 +7,6 @@ // // ********************************************************************** - const Ice = require("../Ice/ModuleRegistry").Ice; Ice._ModuleRegistry.require(module, [ diff --git a/js/src/Ice/EnumBase.js b/js/src/Ice/EnumBase.js index 28e21b2ccc6..dc18069e96b 100644 --- a/js/src/Ice/EnumBase.js +++ b/js/src/Ice/EnumBase.js @@ -7,7 +7,6 @@ // // ********************************************************************** - const Ice = require("../Ice/ModuleRegistry").Ice; // // Ice.EnumBase diff --git a/js/src/Ice/Ice.js b/js/src/Ice/Ice.js index 56057f11bbd..f109a18c78f 100644 --- a/js/src/Ice/Ice.js +++ b/js/src/Ice/Ice.js @@ -7,7 +7,6 @@ // // ********************************************************************** - const _ModuleRegistry = require("../Ice/ModuleRegistry").Ice._ModuleRegistry; module.exports.Ice = _ModuleRegistry.require(module, diff --git a/js/src/Ice/Instance.js b/js/src/Ice/Instance.js index 7e3ca7e704b..8d2f0cbd0a3 100644 --- a/js/src/Ice/Instance.js +++ b/js/src/Ice/Instance.js @@ -355,7 +355,6 @@ class Instance new ACMConfig(this._initData.properties, this._initData.logger, "Ice.ACM", new ACMConfig())); - const toStringModeStr = this._initData.properties.getPropertyWithDefault("Ice.ToStringMode", "Unicode"); if(toStringModeStr === "ASCII") { diff --git a/js/src/Ice/Operation.js b/js/src/Ice/Operation.js index 399eab97377..6e58457370e 100644 --- a/js/src/Ice/Operation.js +++ b/js/src/Ice/Operation.js @@ -7,7 +7,6 @@ // // ********************************************************************** - const Ice = require("../Ice/ModuleRegistry").Ice; const _ModuleRegistry = Ice._ModuleRegistry; _ModuleRegistry.require(module, diff --git a/js/src/Ice/Properties.js b/js/src/Ice/Properties.js index a42e7a8c525..5375c7ad0f3 100644 --- a/js/src/Ice/Properties.js +++ b/js/src/Ice/Properties.js @@ -7,7 +7,6 @@ // // ********************************************************************** - const Ice = require("../Ice/ModuleRegistry").Ice; Ice._ModuleRegistry.require(module, [ diff --git a/js/src/Ice/RouterInfo.js b/js/src/Ice/RouterInfo.js index 8e9a5875587..e03a7cad8a5 100644 --- a/js/src/Ice/RouterInfo.js +++ b/js/src/Ice/RouterInfo.js @@ -91,7 +91,6 @@ class RouterInfo return promise; } - getServerEndpoints() { if(this._serverEndpoints !== null) // Lazy initialization. diff --git a/js/src/Ice/Stream.js b/js/src/Ice/Stream.js index 8ac72046c6e..ba859ee9eb3 100644 --- a/js/src/Ice/Stream.js +++ b/js/src/Ice/Stream.js @@ -2686,7 +2686,6 @@ class EncapsEncoder11 extends EncapsEncoder this._current.indirectionMap = new Map(); // Map<Ice.Value, int> } - info.instances.forEach(instance => this._current.indirectionTable.push(instance)); } diff --git a/js/src/Ice/StreamHelpers.js b/js/src/Ice/StreamHelpers.js index c5136903016..1b66c7f4db4 100644 --- a/js/src/Ice/StreamHelpers.js +++ b/js/src/Ice/StreamHelpers.js @@ -152,8 +152,6 @@ class SequenceHelper } } - - // Speacialization optimized for ByteSeq const byteSeqHelper = new SequenceHelper(); byteSeqHelper.write = function(os, v) { return os.writeByteSeq(v); }; diff --git a/js/src/Ice/StringUtil.js b/js/src/Ice/StringUtil.js index 875a8be63ca..8c3f9ce3e65 100644 --- a/js/src/Ice/StringUtil.js +++ b/js/src/Ice/StringUtil.js @@ -268,7 +268,6 @@ Ice.StringUtil = class }; module.exports.Ice = Ice; - function encodeChar(c, sb, special, toStringMode) { switch(c) diff --git a/js/src/Ice/TcpTransceiver.js b/js/src/Ice/TcpTransceiver.js index 96546c27472..f190e117200 100644 --- a/js/src/Ice/TcpTransceiver.js +++ b/js/src/Ice/TcpTransceiver.js @@ -440,7 +440,6 @@ function addressesToString(localHost, localPort, remoteHost, remotePort, targetA return s.join(""); } - const ECONNABORTED = "ECONNABORTED"; const ECONNREFUSED = "ECONNREFUSED"; const ECONNRESET = "ECONNRESET"; diff --git a/js/src/Ice/browser/TimerUtil.js b/js/src/Ice/browser/TimerUtil.js index 3acbb4606ac..38795525903 100644 --- a/js/src/Ice/browser/TimerUtil.js +++ b/js/src/Ice/browser/TimerUtil.js @@ -13,7 +13,6 @@ /* global WorkerGlobalScope */ - const Ice = require("../Ice/ModuleRegistry").Ice; // diff --git a/js/test/Common/TestRunner.js b/js/test/Common/TestRunner.js index 8d6903b0fff..b3259bfa7c8 100644 --- a/js/test/Common/TestRunner.js +++ b/js/test/Common/TestRunner.js @@ -7,7 +7,6 @@ // // ********************************************************************** - /* global _test : false, _runServer : false, diff --git a/js/test/Common/Worker.js b/js/test/Common/Worker.js index 19e42a099f4..573e2e25451 100644 --- a/js/test/Common/Worker.js +++ b/js/test/Common/Worker.js @@ -56,7 +56,6 @@ self.onmessage = function(e) self.importScripts(f); } - runTest(test.name, test.language, test.defaultHost, test.protocol, test.testcases, Output).then( function(r) { diff --git a/js/test/Glacier2/router/Client.js b/js/test/Glacier2/router/Client.js index 0c8496d7782..5dde0d2720b 100644 --- a/js/test/Glacier2/router/Client.js +++ b/js/test/Glacier2/router/Client.js @@ -33,7 +33,6 @@ this._p = new Ice.Promise(); } - callback(current) { test(!this._callback); diff --git a/js/test/Ice/defaultValue/Client.js b/js/test/Ice/defaultValue/Client.js index f176d558ca3..41aa9b6b44d 100644 --- a/js/test/Ice/defaultValue/Client.js +++ b/js/test/Ice/defaultValue/Client.js @@ -161,7 +161,6 @@ out.writeLine("ok"); - out.write("testing default constructor... "); var v2 = new Test.StructNoDefaults(); diff --git a/js/test/Ice/import/Demo/Point.ice b/js/test/Ice/import/Demo/Point.ice index 17ba0af3eeb..3b305c64307 100644 --- a/js/test/Ice/import/Demo/Point.ice +++ b/js/test/Ice/import/Demo/Point.ice @@ -17,5 +17,4 @@ struct Point } - } diff --git a/js/test/Ice/import/Demo/Square.ice b/js/test/Ice/import/Demo/Square.ice index 77326b945d4..f3dbdb46662 100644 --- a/js/test/Ice/import/Demo/Square.ice +++ b/js/test/Ice/import/Demo/Square.ice @@ -19,7 +19,6 @@ struct Square Point p4; } - } } diff --git a/js/test/Ice/inheritance/Test.ice b/js/test/Ice/inheritance/Test.ice index 4e7df94a481..308d55d3ba5 100644 --- a/js/test/Ice/inheritance/Test.ice +++ b/js/test/Ice/inheritance/Test.ice @@ -82,7 +82,6 @@ interface Initial MA::IC* icop(); } - module MC { diff --git a/js/test/Ice/number/Client.js b/js/test/Ice/number/Client.js index 12667f3908e..9de26895452 100644 --- a/js/test/Ice/number/Client.js +++ b/js/test/Ice/number/Client.js @@ -76,8 +76,6 @@ test(new Ice.Long(-Math.pow(2, 52)).toNumber() === -Math.pow(2, 52)); // -(2^52) test(new Ice.Long(-Math.pow(2, 52) - 1).toNumber() === -Math.pow(2, 52) - 1); // -(2^52 - 1) - - out.writeLine("ok"); }); }; diff --git a/js/test/Ice/objects/Test.ice b/js/test/Ice/objects/Test.ice index d7e55ca15de..fd0b5e11b09 100644 --- a/js/test/Ice/objects/Test.ice +++ b/js/test/Ice/objects/Test.ice @@ -107,7 +107,6 @@ class CompactExt(CompactExtId) extends Compact { } - class A1 { string name; diff --git a/js/test/Ice/operations/Test.ice b/js/test/Ice/operations/Test.ice index 18d7af12862..5b91f23eb1c 100644 --- a/js/test/Ice/operations/Test.ice +++ b/js/test/Ice/operations/Test.ice @@ -144,7 +144,6 @@ interface MyClass LongSS opShortIntLongSS(ShortSS p1, IntSS p2, LongSS p3, out ShortSS p4, out IntSS p5, out LongSS p6); - DoubleSS opFloatDoubleSS(FloatSS p1, DoubleSS p2, out FloatSS p3, out DoubleSS p4); diff --git a/js/test/Ice/optional/Client.js b/js/test/Ice/optional/Client.js index fea6c3a6fa2..74d068499d5 100644 --- a/js/test/Ice/optional/Client.js +++ b/js/test/Ice/optional/Client.js @@ -111,7 +111,6 @@ test(mo4.ser === undefined); - mo1 = new Test.MultiOptional(); mo1.a = 15; mo1.b = true; diff --git a/js/test/Ice/optional/ServerAMD.js b/js/test/Ice/optional/ServerAMD.js index 86779fd2d76..94424603114 100644 --- a/js/test/Ice/optional/ServerAMD.js +++ b/js/test/Ice/optional/ServerAMD.js @@ -13,7 +13,6 @@ var Test = require("Test").Test; var AMDInitialI = require("AMDInitialI").AMDInitialI; - var run = function(out, id, ready) { var communicator = Ice.initialize(id); diff --git a/js/test/Ice/properties/config/escapes.cfg b/js/test/Ice/properties/config/escapes.cfg index bd7c16643d9..a9d91a0a19f 100644 --- a/js/test/Ice/properties/config/escapes.cfg +++ b/js/test/Ice/properties/config/escapes.cfg @@ -22,7 +22,6 @@ foo\=bar=1 # Name is "foo=bar", value is "1" foo\#bar = 2 # Name is "foo#bar", value is "2" foo bar =3 # Name is "foo bar", value is "3" - A=1 # Name is "A", value is "1" B= 2 3 4 # Name is "B", value is "2 3 4" C=5=\#6 # 7 # Name is "C", value is "5=#6" diff --git a/js/test/Ice/proxy/Client.js b/js/test/Ice/proxy/Client.js index 102afbb93cf..f9113313f21 100644 --- a/js/test/Ice/proxy/Client.js +++ b/js/test/Ice/proxy/Client.js @@ -320,7 +320,6 @@ } } - // // Test for bug ICE-5543: escaped escapes in stringToIdentity // @@ -664,7 +663,6 @@ { } - out.writeLine("ok"); out.write("testing proxy comparison... "); |