summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-08-14 12:27:23 -0500
committerkpdecker <kpdecker@gmail.com>2014-08-14 12:27:23 -0500
commitb94656a31fe783b5b4c29eab09e7e334e5113036 (patch)
tree2839929514c81b351241183ce50417768a971555 /lib/handlebars/compiler/compiler.js
parent3cea85b2b0d1478dbeb19c82f7781385268db6a2 (diff)
downloadhandlebars.js-b94656a31fe783b5b4c29eab09e7e334e5113036.zip
handlebars.js-b94656a31fe783b5b4c29eab09e7e334e5113036.tar.gz
handlebars.js-b94656a31fe783b5b4c29eab09e7e334e5113036.tar.bz2
Drop unused Compiler.disassemble method
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r--lib/handlebars/compiler/compiler.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js
index 1205898..8cabbdd 100644
--- a/lib/handlebars/compiler/compiler.js
+++ b/lib/handlebars/compiler/compiler.js
@@ -10,30 +10,6 @@ export function Compiler() {}
Compiler.prototype = {
compiler: Compiler,
- disassemble: function() {
- var opcodes = this.opcodes, opcode, out = [], params, param;
-
- for (var i=0, l=opcodes.length; i<l; i++) {
- opcode = opcodes[i];
-
- if (opcode.opcode === 'DECLARE') {
- out.push("DECLARE " + opcode.name + "=" + opcode.value);
- } else {
- params = [];
- for (var j=0; j<opcode.args.length; j++) {
- param = opcode.args[j];
- if (typeof param === "string") {
- param = "\"" + param.replace("\n", "\\n") + "\"";
- }
- params.push(param);
- }
- out.push(opcode.opcode + " " + params.join(" "));
- }
- }
-
- return out.join("\n");
- },
-
equals: function(other) {
var len = this.opcodes.length;
if (other.opcodes.length !== len) {