Revert till template formatter becomes a part of "community" repository

This commit is contained in:
Rustam Vishnyakov
2015-11-03 17:18:50 +03:00
parent 24d322abcd
commit 84eed3139a
2 changed files with 0 additions and 7 deletions
-1
View File
@@ -15,6 +15,5 @@
<orderEntry type="module" module-name="xml-openapi" />
<orderEntry type="module" module-name="spellchecker" />
<orderEntry type="library" name="Guava" level="project" />
<orderEntry type="module" module-name="webide-impl" />
</component>
</module>
@@ -13,11 +13,9 @@ import com.intellij.psi.PsiFile;
import com.intellij.psi.TokenType;
import com.intellij.psi.codeStyle.CodeStyleSettings;
import com.intellij.psi.codeStyle.CommonCodeStyleSettings;
import com.intellij.psi.templateLanguages.OuterLanguageElement;
import com.intellij.psi.tree.TokenSet;
import com.intellij.util.Function;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.webcore.template.formatter.TemplateFormatUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -144,10 +142,6 @@ public class JsonBlock implements ASTBlock {
}
}
}
if (childNode.getPsi() instanceof OuterLanguageElement) {
Block templateBlock = TemplateFormatUtil.buildTemplateLanguageBlock((OuterLanguageElement)childNode.getPsi(), mySettings, indent);
if (templateBlock != null) return templateBlock;
}
return new JsonBlock(this, childNode, mySettings, alignment, indent, wrap);
}