summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-09-26 10:47:46 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-09-26 10:47:46 -0700
commit50d87813fc96ea8d5c2610f3fad134f8d4f8e286 (patch)
treee59f0a6abbe3f5b6b1d6bf110b47eaf6f07e8bee /js
parentde2a35a4dcb3b051df328ec2c204f08c77a5ad3d (diff)
Removed memoization code.
Diffstat (limited to 'js')
-rwxr-xr-xjs/stmd.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/js/stmd.js b/js/stmd.js
index 589ac03..5a09875 100755
--- a/js/stmd.js
+++ b/js/stmd.js
@@ -735,13 +735,6 @@
// and returning the inline parsed.
var parseInline = function() {
var startpos = this.pos;
- /*
- var memoized = this.memo[startpos];
- if (memoized) {
- this.pos = memoized.endpos;
- return memoized.inline;
- }
- */
var c = this.peek();
if (!c) {
return null;
@@ -782,12 +775,6 @@
this.pos += 1;
res = [{t: 'Str', c: c}];
}
- /*
- if (res) {
- this.memo[startpos] = { inline: res,
- endpos: this.pos };
- }
- */
return res;
};
@@ -796,7 +783,6 @@
this.subject = s;
this.pos = 0;
this.refmap = refmap || {};
- // this.memo = {};
this.last_emphasis_closer = null;
var inlines = [];
var next_inline;
@@ -814,7 +800,6 @@
last_emphasis_closer: null, // used by parseEmphasis method
pos: 0,
refmap: {},
- // memo: {},
match: match,
peek: peek,
spnl: spnl,