Skip to content

Commit fa2478f

Browse files
committed
Remove getNestLocationSub function
1 parent 8c237d3 commit fa2478f

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

processes/on-editor-load.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -126,31 +126,6 @@
126126
if (!cM.somethingSelected()) {cM.setCursor(linePos, cursorPos+adjustCursor)};
127127
}
128128

129-
// Work out the nesting depth location on demand and update our display if required
130-
top.ICEcoder.getNestLocationSub = function(nestCheck, fileName) {
131-
var events, fileExt;
132-
133-
fileExt = fileName.split(".");
134-
fileExt = fileExt[fileExt.length-1];
135-
136-
if (["js","coffee","css","less","sql","erl","yaml","java","jl","c","cpp","cs","go","lua","pl","rs","scss"].indexOf(fileExt)<0 &&
137-
(nestCheck.indexOf("include(")==-1)&&(nestCheck.indexOf("include_once(")==-1)) {
138-
139-
// Then for all the array items, output as the nest display
140-
for (var i=0;i<top.ICEcoder.htmlTagArray.length;i++) {
141-
events = 'onMouseover="top.ICEcoder.highlightBlock('+i+')" onMouseout="top.ICEcoder.highlightBlock('+i+',\'hide\')" onClick="top.ICEcoder.setPosition('+i+',top.ICEcoder.startPosLine,\''+top.ICEcoder.htmlTagArray[i]+'\')"';
142-
if (i==0) {top.ICEcoder.nestDisplay.innerHTML += '<div '+events+' style="display: inline-block; width: 7px; margin-top: -5px; height: 30px; background-image: url(images/nest-tag-bg.gif)"></div>'};
143-
top.ICEcoder.nestDisplay.innerHTML += '<a '+events+' style="display: inline-block; cursor: pointer; background: #333; padding: 7px 2px 7px 7px; margin-top: -5px; height: 30px">'+top.ICEcoder.htmlTagArray[i]+'</a>';
144-
top.ICEcoder.nestDisplay.innerHTML += i<top.ICEcoder.htmlTagArray.length-1
145-
? '<div '+events+' style="display: inline-block; width: 8px; margin-top: -5px; height: 30px; background-image: url(images/nest-tag-bg.gif); background-position: -7px 0; cursor: pointer"></div>'
146-
: '<div '+events+' style="display: inline-block; width: 7px; margin-top: -5px; height: 30px; background-image: url(images/nest-tag-bg.gif); background-position: -15px 0; cursor: pointer"></div>';
147-
}
148-
if (top.ICEcoder.tagString != "script") {
149-
top.ICEcoder.nestDisplay.innerHTML += '<a style="display: inline-block; cursor: default; padding: 7px 2px 7px 7px; margin-top: -5px; height: 30px; color: #666">content</a>';
150-
}
151-
}
152-
}
153-
154129
// Indicate if the nesting structure of the code is OK
155130
top.ICEcoder.updateNestingIndicator = function() {
156131
var cM, cMdiff, thisCM, testToken, nestOK, fileName, fileExt;

0 commit comments

Comments
 (0)