diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-22 04:24:40 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-22 04:24:40 +0800 |
commit | 81a58132709b683a61cbde3dab93bbeb11d8debb (patch) | |
tree | 531bdd81fb6b657533400a80cf89143445a62792 /lib | |
parent | 08e26966275d5d0d7186bf734842e5da59a5bec9 (diff) | |
download | go-tangerine-81a58132709b683a61cbde3dab93bbeb11d8debb.tar go-tangerine-81a58132709b683a61cbde3dab93bbeb11d8debb.tar.gz go-tangerine-81a58132709b683a61cbde3dab93bbeb11d8debb.tar.bz2 go-tangerine-81a58132709b683a61cbde3dab93bbeb11d8debb.tar.lz go-tangerine-81a58132709b683a61cbde3dab93bbeb11d8debb.tar.xz go-tangerine-81a58132709b683a61cbde3dab93bbeb11d8debb.tar.zst go-tangerine-81a58132709b683a61cbde3dab93bbeb11d8debb.zip |
removed unused pieces of code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/web3.js | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/lib/web3.js b/lib/web3.js index 515c8c37b..cfe06763d 100644 --- a/lib/web3.js +++ b/lib/web3.js @@ -265,35 +265,6 @@ var web3 = { } }, - /// used by filter to register callback with given id - on: function(event, id, cb) { - if(web3._events[event] === undefined) { - web3._events[event] = {}; - } - - web3._events[event][id] = cb; - return this; - }, - - /// used by filter to unregister callback with given id - off: function(event, id) { - if(web3._events[event] !== undefined) { - delete web3._events[event][id]; - } - - return this; - }, - - /// used to trigger callback registered by filter - trigger: function(event, id, data) { - var callbacks = web3._events[event]; - if (!callbacks || !callbacks[id]) { - return; - } - var cb = callbacks[id]; - cb(data); - }, - /// @returns true if provider is installed haveProvider: function() { return !!web3.provider.provider; @@ -324,21 +295,5 @@ web3.setProvider = function(provider) { web3.provider.set(provider); }; -/// callled when there is new incoming message -function messageHandler(data) { - if(data._event !== undefined) { - web3.trigger(data._event, data._id, data.data); - return; - } - - if(data._id) { - var cb = web3._callbacks[data._id]; - if (cb) { - cb.call(this, data.error, data.data); - delete web3._callbacks[data._id]; - } - } -} - module.exports = web3; |