Don't need to work out file name now

This was legacy code that made use of the file extension. We now just go
by there being a { on the line.
This commit is contained in:
Matt Pass
2014-02-18 08:28:54 +00:00
parent 4124d64a58
commit 59a749c5ce

View File

@@ -287,8 +287,6 @@ function createNewCMInstance(num) {
);
window['cM'+num].on("gutterClick", function(thisCM, line, gutter, clickEvent) {
var filepath = top.ICEcoder.openFiles[top.ICEcoder.selectedTab-1];
var fileExt = filepath.substr(filepath.lastIndexOf(".")+1);
window['cM'+num].getLine(line).indexOf("{")>-1
? codeFoldBrace(window['cM'+num], line) : codeFoldTag(window['cM'+num], line);
}