Remove unused commands.js file

This commit is contained in:
joeuhren
2020-12-20 20:50:36 -07:00
parent 6749cafa53
commit 8219039f42
2 changed files with 0 additions and 97 deletions
-12
View File
@@ -1,4 +1,3 @@
var commands = require('./commands');
var rpc = require('./jsonrpc');
function Client(opts) {
@@ -31,15 +30,4 @@ function callRpc (cmd, args, rpc) {
});
};
(function() {
for (var protoFn in commands) {
(function(protoFn) {
Client.prototype[protoFn] = function() {
var args = [].slice.call(arguments);
callRpc(commands[protoFn], args, this.rpc);
};
})(protoFn);
}
})();
module.exports.Client = Client;