diff options
author | Matthias Bartelmeß <mba@fourplusone.de> | 2012-02-19 14:30:08 +0100 |
---|---|---|
committer | Matthias Bartelmeß <mba@fourplusone.de> | 2012-02-19 14:30:08 +0100 |
commit | 3c4b4af43dcc6f2246b61db68210a8e25fcdf5f5 (patch) | |
tree | d6f3c06f18b933204e41c6770334e88e1d7b82b3 /static | |
parent | fb879576e192f036806ab15e1792474e002cd358 (diff) | |
download | etherpad-lite-3c4b4af43dcc6f2246b61db68210a8e25fcdf5f5.zip |
removed recolor module since it wasn't used
Diffstat (limited to 'static')
-rw-r--r-- | static/js/ace2_inner.js | 50 |
1 files changed, 1 insertions, 49 deletions
diff --git a/static/js/ace2_inner.js b/static/js/ace2_inner.js index de04c067..9e2271ca 100644 --- a/static/js/ace2_inner.js +++ b/static/js/ace2_inner.js @@ -457,7 +457,6 @@ var makeVirtualLineView = require('/virtual_lines').makeVirtualLineView; // if (cs.repChanged) parenModule.notifyChange(); // else parenModule.notifyTick(); // } - recolorModule.recolorLines(); if (cs.selectionAffected) { updateBrowserSelectionFromRep(); @@ -514,54 +513,7 @@ var makeVirtualLineView = require('/virtual_lines').makeVirtualLineView; { return rep.lines.atOffset(charOffset).key; } - - var recolorModule = (function() - { - var dirtyLineKeys = {}; - - var module = {}; - module.setCharNeedsRecoloring = function(offset) - { - if (offset >= rep.alltext.length) - { - offset = rep.alltext.length - 1; - } - dirtyLineKeys[getLineKeyForOffset(offset)] = true; - } - - module.setCharRangeNeedsRecoloring = function(offset1, offset2) - { - if (offset1 >= rep.alltext.length) - { - offset1 = rep.alltext.length - 1; - } - if (offset2 >= rep.alltext.length) - { - offset2 = rep.alltext.length - 1; - } - var firstEntry = rep.lines.atOffset(offset1); - var lastKey = rep.lines.atOffset(offset2).key; - dirtyLineKeys[lastKey] = true; - var entry = firstEntry; - while (entry && entry.key != lastKey) - { - dirtyLineKeys[entry.key] = true; - entry = rep.lines.next(entry); - } - } - - module.recolorLines = function() - { - for (var k in dirtyLineKeys) - { - recolorLineByKey(k); - } - dirtyLineKeys = {}; - } - - return module; - })(); - + function dispose() { disposed = true; |