Doing some small tiedy up. Unstructured Code Folding should be done.
This commit is contained in:
parent
a385637b9e
commit
2c9e4f7476
4 changed files with 53 additions and 95 deletions
|
|
@ -267,22 +267,6 @@ function FoldLine(foldData, folds) {
|
|||
column: this.end.column + idx
|
||||
};
|
||||
}
|
||||
|
||||
// this.positionToIdx = function(pos) {
|
||||
// var row = pos.row;
|
||||
// var column = pos.column;
|
||||
// var idx = 0;
|
||||
//
|
||||
// this.walk(function(placeholder, row, column, lastColumn) {
|
||||
// if (placeholder
|
||||
// var range = new Range(row, lastColumn, row, column);
|
||||
// var cmp = range.compareEnd(row, column);
|
||||
//
|
||||
// if (cmp == 0) {
|
||||
// idx +=
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
}).call(FoldLine.prototype);
|
||||
|
||||
exports.FoldLine = FoldLine;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue