From fa2478f2f78cd2bd63d6be2ca92913fcb413c24b Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Wed, 29 Oct 2014 16:17:42 +0000 Subject: [PATCH] Remove getNestLocationSub function --- processes/on-editor-load.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/processes/on-editor-load.php b/processes/on-editor-load.php index e3b2afb..a739343 100644 --- a/processes/on-editor-load.php +++ b/processes/on-editor-load.php @@ -126,31 +126,6 @@ top.ICEcoder.lineCommentToggleSub = function(cM, cursorPos, linePos, lineContent if (!cM.somethingSelected()) {cM.setCursor(linePos, cursorPos+adjustCursor)}; } -// Work out the nesting depth location on demand and update our display if required -top.ICEcoder.getNestLocationSub = function(nestCheck, fileName) { - var events, fileExt; - - fileExt = fileName.split("."); - fileExt = fileExt[fileExt.length-1]; - - if (["js","coffee","css","less","sql","erl","yaml","java","jl","c","cpp","cs","go","lua","pl","rs","scss"].indexOf(fileExt)<0 && - (nestCheck.indexOf("include(")==-1)&&(nestCheck.indexOf("include_once(")==-1)) { - - // Then for all the array items, output as the nest display - for (var i=0;i'}; - top.ICEcoder.nestDisplay.innerHTML += ''+top.ICEcoder.htmlTagArray[i]+''; - top.ICEcoder.nestDisplay.innerHTML += i' - : '
'; - } - if (top.ICEcoder.tagString != "script") { - top.ICEcoder.nestDisplay.innerHTML += 'content'; - } - } -} - // Indicate if the nesting structure of the code is OK top.ICEcoder.updateNestingIndicator = function() { var cM, cMdiff, thisCM, testToken, nestOK, fileName, fileExt;