diff options
author | Jose <jose@zeroc.com> | 2018-03-26 16:24:26 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-03-26 16:24:26 +0200 |
commit | eb0c91e090ea06b6e48e5f0849bd0807f9e93058 (patch) | |
tree | f0e21da46499d3dc74d58606b2136d2109d4c348 /js/src | |
parent | Remove unused constant (diff) | |
download | ice-eb0c91e090ea06b6e48e5f0849bd0807f9e93058.tar.bz2 ice-eb0c91e090ea06b6e48e5f0849bd0807f9e93058.tar.xz ice-eb0c91e090ea06b6e48e5f0849bd0807f9e93058.zip |
Unused variables
Diffstat (limited to 'js/src')
-rw-r--r-- | js/src/Ice/Base64.js | 2 | ||||
-rw-r--r-- | js/src/Ice/BatchRequestQueue.js | 4 | ||||
-rw-r--r-- | js/src/Ice/IncomingAsync.js | 1 | ||||
-rw-r--r-- | js/src/Ice/Instance.js | 7 | ||||
-rw-r--r-- | js/src/Ice/Logger.js | 3 | ||||
-rw-r--r-- | js/src/Ice/ObjectAdapterFactory.js | 2 | ||||
-rw-r--r-- | js/src/Ice/OpaqueEndpointI.js | 2 | ||||
-rw-r--r-- | js/src/Ice/OutgoingAsync.js | 1 | ||||
-rw-r--r-- | js/src/Ice/OutgoingConnectionFactory.js | 5 | ||||
-rw-r--r-- | js/src/Ice/Properties.js | 1 | ||||
-rw-r--r-- | js/src/Ice/Reference.js | 2 | ||||
-rw-r--r-- | js/src/Ice/RequestHandlerFactory.js | 2 | ||||
-rw-r--r-- | js/src/Ice/RouterInfo.js | 2 | ||||
-rw-r--r-- | js/src/Ice/TcpTransceiver.js | 6 | ||||
-rw-r--r-- | js/src/Ice/Value.js | 2 | ||||
-rw-r--r-- | js/src/Ice/ValueFactoryManagerI.js | 1 | ||||
-rw-r--r-- | js/src/Ice/WSEndpoint.js | 2 | ||||
-rw-r--r-- | js/src/Ice/browser/WSTransceiver.js | 13 |
18 files changed, 4 insertions, 54 deletions
diff --git a/js/src/Ice/Base64.js b/js/src/Ice/Base64.js index 6d124f9c47f..db340f2adb0 100644 --- a/js/src/Ice/Base64.js +++ b/js/src/Ice/Base64.js @@ -183,8 +183,6 @@ class Base64 let c3; let c4; - let off = 0; - for(let i = 0; i < newStr.length; i += 4) { c1 = "A"; diff --git a/js/src/Ice/BatchRequestQueue.js b/js/src/Ice/BatchRequestQueue.js index 779e5b4a309..09ce8764f35 100644 --- a/js/src/Ice/BatchRequestQueue.js +++ b/js/src/Ice/BatchRequestQueue.js @@ -12,13 +12,11 @@ Ice._ModuleRegistry.require(module, [ "../Ice/Stream", "../Ice/Debug", - "../Ice/ExUtil", - "../Ice/Protocol", + "../Ice/Protocol" ]); const OutputStream = Ice.OutputStream; const Debug = Ice.Debug; -const ExUtil = Ice.ExUtil; const Protocol = Ice.Protocol; const udpOverhead = 20 + 8; diff --git a/js/src/Ice/IncomingAsync.js b/js/src/Ice/IncomingAsync.js index 1b088de5b71..3b779fec94a 100644 --- a/js/src/Ice/IncomingAsync.js +++ b/js/src/Ice/IncomingAsync.js @@ -25,7 +25,6 @@ Ice._ModuleRegistry.require(module, const OutputStream = Ice.OutputStream; const Current = Ice.Current; const Debug = Ice.Debug; -const FormatType = Ice.FormatType; const Context = Ice.Context; const Identity = Ice.Identity; const Protocol = Ice.Protocol; diff --git a/js/src/Ice/Instance.js b/js/src/Ice/Instance.js index c8189c25aa4..bdb1261345b 100644 --- a/js/src/Ice/Instance.js +++ b/js/src/Ice/Instance.js @@ -17,7 +17,6 @@ Ice._ModuleRegistry.require(module, "../Ice/ImplicitContextI", "../Ice/IdentityUtil", "../Ice/LocatorManager", - "../Ice/Logger", "../Ice/ObjectAdapterFactory", "../Ice/ValueFactoryManagerI", "../Ice/OutgoingConnectionFactory", @@ -37,18 +36,16 @@ Ice._ModuleRegistry.require(module, "../Ice/Exception", "../Ice/ProcessLogger", "../Ice/ACM", - "../Ice/ToStringMode" + "../Ice/ToStringMode", + "../Ice/EndpointInfo" ]); -const IceSSL = Ice._ModuleRegistry.require(module, ["../Ice/EndpointInfo"]).IceSSL; - const AsyncResultBase = Ice.AsyncResultBase; const Debug = Ice.Debug; const DefaultsAndOverrides = Ice.DefaultsAndOverrides; const EndpointFactoryManager = Ice.EndpointFactoryManager; const ImplicitContextI = Ice.ImplicitContextI; const LocatorManager = Ice.LocatorManager; -const Logger = Ice.Logger; const ObjectAdapterFactory = Ice.ObjectAdapterFactory; const ValueFactoryManagerI = Ice.ValueFactoryManagerI; const OutgoingConnectionFactory = Ice.OutgoingConnectionFactory; diff --git a/js/src/Ice/Logger.js b/js/src/Ice/Logger.js index 29e6a9fda8d..03264b73e57 100644 --- a/js/src/Ice/Logger.js +++ b/js/src/Ice/Logger.js @@ -42,7 +42,6 @@ class Logger trace(category, message) { const s = []; - const d = new Date(); s.push("-- "); s.push(this.timestamp()); s.push(' '); @@ -56,7 +55,6 @@ class Logger warning(message) { const s = []; - const d = new Date(); s.push("-! "); s.push(this.timestamp()); s.push(' '); @@ -69,7 +67,6 @@ class Logger error(message) { const s = []; - const d = new Date(); s.push("!! "); s.push(this.timestamp()); s.push(' '); diff --git a/js/src/Ice/ObjectAdapterFactory.js b/js/src/Ice/ObjectAdapterFactory.js index 8cf40e26e6c..b1f9b77658e 100644 --- a/js/src/Ice/ObjectAdapterFactory.js +++ b/js/src/Ice/ObjectAdapterFactory.js @@ -10,14 +10,12 @@ const Ice = require("../Ice/ModuleRegistry").Ice; Ice._ModuleRegistry.require(module, [ - "../Ice/AsyncResultBase", "../Ice/LocalException", "../Ice/ObjectAdapterI", "../Ice/Promise", "../Ice/UUID" ]); -const AsyncResultBase = Ice.AsyncResultBase; const ObjectAdapterI = Ice.ObjectAdapterI; const _Promise = Ice.Promise; diff --git a/js/src/Ice/OpaqueEndpointI.js b/js/src/Ice/OpaqueEndpointI.js index 1cd63144c3a..63561107b6b 100644 --- a/js/src/Ice/OpaqueEndpointI.js +++ b/js/src/Ice/OpaqueEndpointI.js @@ -14,7 +14,6 @@ Ice._ModuleRegistry.require(module, "../Ice/Debug", "../Ice/FormatType", "../Ice/HashUtil", - "../Ice/Protocol", "../Ice/StringUtil", "../Ice/EndpointI", "../Ice/LocalException" @@ -23,7 +22,6 @@ Ice._ModuleRegistry.require(module, const Base64 = Ice.Base64; const Debug = Ice.Debug; const HashUtil = Ice.HashUtil; -const Protocol = Ice.Protocol; const StringUtil = Ice.StringUtil; const EndpointParseException = Ice.EndpointParseException; diff --git a/js/src/Ice/OutgoingAsync.js b/js/src/Ice/OutgoingAsync.js index ca2ae0f5b6d..897f013ea93 100644 --- a/js/src/Ice/OutgoingAsync.js +++ b/js/src/Ice/OutgoingAsync.js @@ -29,7 +29,6 @@ const InputStream = Ice.InputStream; const OutputStream = Ice.OutputStream; const Debug = Ice.Debug; const RetryException = Ice.RetryException; -const OperationMode = Ice.OperationMode; const Protocol = Ice.Protocol; const Identity = Ice.Identity; diff --git a/js/src/Ice/OutgoingConnectionFactory.js b/js/src/Ice/OutgoingConnectionFactory.js index 32efebf5393..59bd28018d4 100644 --- a/js/src/Ice/OutgoingConnectionFactory.js +++ b/js/src/Ice/OutgoingConnectionFactory.js @@ -10,7 +10,6 @@ const Ice = require("../Ice/ModuleRegistry").Ice; Ice._ModuleRegistry.require(module, [ - "../Ice/ArrayUtil", "../Ice/AsyncResultBase", "../Ice/ConnectionI", "../Ice/Debug", @@ -22,13 +21,10 @@ Ice._ModuleRegistry.require(module, "../Ice/ACM" ]); -const ArrayUtil = Ice.ArrayUtil; const AsyncResultBase = Ice.AsyncResultBase; const ConnectionI = Ice.ConnectionI; -const ConnectionReaper = Ice.ConnectionReaper; const Debug = Ice.Debug; const HashMap = Ice.HashMap; -const EndpointSelectionType = Ice.EndpointSelectionType; const FactoryACMMonitor = Ice.FactoryACMMonitor; // @@ -223,7 +219,6 @@ class OutgoingConnectionFactory throw new Ice.CommunicatorDestroyedException(); } - const defaultsAndOverrides = this._instance.defaultsAndOverrides(); Debug.assert(endpoints.length > 0); for(let i = 0; i < endpoints.length; ++i) diff --git a/js/src/Ice/Properties.js b/js/src/Ice/Properties.js index 4c2801ab5c2..c06559b0670 100644 --- a/js/src/Ice/Properties.js +++ b/js/src/Ice/Properties.js @@ -21,7 +21,6 @@ Ice._ModuleRegistry.require(module, const StringUtil = Ice.StringUtil; const PropertyNames = Ice.PropertyNames; const Debug = Ice.Debug; -const ProcessLogger = Ice.ProcessLogger; const getProcessLogger = Ice.getProcessLogger; const InitializationException = Ice.InitializationException; diff --git a/js/src/Ice/Reference.js b/js/src/Ice/Reference.js index f0ffc0345bc..ea26b5a086e 100644 --- a/js/src/Ice/Reference.js +++ b/js/src/Ice/Reference.js @@ -16,7 +16,6 @@ Ice._ModuleRegistry.require(module, "../Ice/HashUtil", "../Ice/OpaqueEndpointI", "../Ice/Promise", - "../Ice/Protocol", "../Ice/ReferenceMode", "../Ice/StringUtil", "../Ice/BuiltinSequences", @@ -36,7 +35,6 @@ const Debug = Ice.Debug; const BatchRequestQueue = Ice.BatchRequestQueue; const HashUtil = Ice.HashUtil; const OpaqueEndpointI = Ice.OpaqueEndpointI; -const Protocol = Ice.Protocol; const RefMode = Ice.ReferenceMode; const StringUtil = Ice.StringUtil; const StringSeqHelper = Ice.StringSeqHelper; diff --git a/js/src/Ice/RequestHandlerFactory.js b/js/src/Ice/RequestHandlerFactory.js index 40179f62f68..307879b529e 100644 --- a/js/src/Ice/RequestHandlerFactory.js +++ b/js/src/Ice/RequestHandlerFactory.js @@ -10,13 +10,11 @@ const Ice = require("../Ice/ModuleRegistry").Ice; Ice._ModuleRegistry.require(module, [ - "../Ice/Debug", "../Ice/HashMap", "../Ice/Reference", "../Ice/ConnectRequestHandler" ]); -const Debug = Ice.Debug; const HashMap = Ice.HashMap; const ConnectRequestHandler = Ice.ConnectRequestHandler; diff --git a/js/src/Ice/RouterInfo.js b/js/src/Ice/RouterInfo.js index 9264e9d0c7c..dd34a02669e 100644 --- a/js/src/Ice/RouterInfo.js +++ b/js/src/Ice/RouterInfo.js @@ -10,7 +10,6 @@ const Ice = require("../Ice/ModuleRegistry").Ice; Ice._ModuleRegistry.require(module, [ - "../Ice/ArrayUtil", "../Ice/Debug", "../Ice/HashMap", "../Ice/Promise", @@ -18,7 +17,6 @@ Ice._ModuleRegistry.require(module, "../Ice/Exception" ]); -const ArrayUtil = Ice.ArrayUtil; const Debug = Ice.Debug; const HashMap = Ice.HashMap; diff --git a/js/src/Ice/TcpTransceiver.js b/js/src/Ice/TcpTransceiver.js index e768bc01c8b..ffad377425a 100644 --- a/js/src/Ice/TcpTransceiver.js +++ b/js/src/Ice/TcpTransceiver.js @@ -13,20 +13,14 @@ const Ice = require("../Ice/ModuleRegistry").Ice; Ice._ModuleRegistry.require(module, [ "../Ice/Debug", - "../Ice/ExUtil", "../Ice/SocketOperation", "../Ice/Connection", "../Ice/Exception", - "../Ice/LocalException", "../Ice/Timer" ]); const Debug = Ice.Debug; -const ExUtil = Ice.ExUtil; -const Network = Ice.Network; const SocketOperation = Ice.SocketOperation; -const LocalException = Ice.LocalException; -const SocketException = Ice.SocketException; const Timer = Ice.Timer; const StateNeedConnect = 0; diff --git a/js/src/Ice/Value.js b/js/src/Ice/Value.js index d325cb3c612..9d40e2fea7c 100644 --- a/js/src/Ice/Value.js +++ b/js/src/Ice/Value.js @@ -19,8 +19,6 @@ Ice._ModuleRegistry.require(module, "../Ice/OptionalFormat" ]); -const ids = ["::Ice::Object"]; - Ice.Value = class { ice_preMarshal() diff --git a/js/src/Ice/ValueFactoryManagerI.js b/js/src/Ice/ValueFactoryManagerI.js index 7e401c07cbc..48e7efcecb9 100644 --- a/js/src/Ice/ValueFactoryManagerI.js +++ b/js/src/Ice/ValueFactoryManagerI.js @@ -10,7 +10,6 @@ const Ice = require("../Ice/LocalException").Ice; const AlreadyRegisteredException = Ice.AlreadyRegisteredException; -const NotRegisteredException = Ice.NotRegisteredException; // // Only for use by Instance diff --git a/js/src/Ice/WSEndpoint.js b/js/src/Ice/WSEndpoint.js index db79b5fdba1..0548c35afff 100644 --- a/js/src/Ice/WSEndpoint.js +++ b/js/src/Ice/WSEndpoint.js @@ -12,7 +12,6 @@ const Ice = require("../Ice/ModuleRegistry").Ice; Ice._ModuleRegistry.require(module, [ "../Ice/HashUtil", - "../Ice/StringUtil", "../Ice/EndpointI", "../Ice/LocalException", "../Ice/WSTransceiver", @@ -20,7 +19,6 @@ Ice._ModuleRegistry.require(module, ]); const HashUtil = Ice.HashUtil; -const StringUtil = Ice.StringUtil; const EndpointI = Ice.EndpointI; class WSEndpoint extends EndpointI diff --git a/js/src/Ice/browser/WSTransceiver.js b/js/src/Ice/browser/WSTransceiver.js index 79afffd2da4..b80c16318e2 100644 --- a/js/src/Ice/browser/WSTransceiver.js +++ b/js/src/Ice/browser/WSTransceiver.js @@ -11,10 +11,7 @@ const Ice = require("../Ice/ModuleRegistry").Ice; Ice._ModuleRegistry.require(module, [ "../Ice/Debug", - "../Ice/ExUtil", - "../Ice/Network", "../Ice/SocketOperation", - "../Ice/Connection", "../Ice/Exception", "../Ice/LocalException", "../Ice/Timer", @@ -30,17 +27,10 @@ const IceSSL = Ice._ModuleRegistry.module("IceSSL"); // const IsChrome = navigator.userAgent.indexOf("Edge/") === -1 && navigator.userAgent.indexOf("Chrome/") !== -1; -const IsSafari = /^((?!chrome).)*safari/i.test(navigator.userAgent); - -const IsWorker = typeof(WorkerGlobalScope) !== 'undefined' && this instanceof WorkerGlobalScope; +const IsSafari = (/^((?!chrome).)*safari/i).test(navigator.userAgent); const Debug = Ice.Debug; -const ExUtil = Ice.ExUtil; -const Network = Ice.Network; const SocketOperation = Ice.SocketOperation; -const Conn = Ice.Connection; -const LocalException = Ice.LocalException; -const SocketException = Ice.SocketException; const Timer = Ice.Timer; const StateNeedConnect = 0; @@ -258,7 +248,6 @@ class WSTransceiver var avail = this._readBuffers[0].byteLength - this._readPosition; Debug.assert(avail > 0); - var remaining = byteBuffer.remaining; while(byteBuffer.remaining > 0) { |