Remove unused JSCompiler.register method

This commit is contained in:
kpdecker
2014-07-12 13:06:32 -05:00
parent 248ad1acae
commit 63c5eb7a82
@@ -703,11 +703,6 @@ JavaScriptCompiler.prototype = {
return (depths.length === 0 ? 'this.program(' : 'this.programWithDepth(') + programParams.join(', ') + ')';
},
register: function(name, val) {
this.useRegister(name);
this.pushSource(name + " = " + val + ";");
},
useRegister: function(name) {
if(!this.registers[name]) {
this.registers[name] = true;