diff --git a/platform/lang-api/src/com/intellij/formatting/FormattingDocumentModel.java b/platform/lang-api/src/com/intellij/formatting/FormattingDocumentModel.java index 175c0fd14a2c..520853545a44 100644 --- a/platform/lang-api/src/com/intellij/formatting/FormattingDocumentModel.java +++ b/platform/lang-api/src/com/intellij/formatting/FormattingDocumentModel.java @@ -88,12 +88,4 @@ public interface FormattingDocumentModel { CharSequence adjustWhiteSpaceIfNecessary(@NotNull CharSequence whiteSpaceText, int startOffset, int endOffset, @Nullable ASTNode nodeAfter, boolean changedViaPsi); - ///** - // * Allows to answer if given symbol is treated by the current model as white space symbol during formatting. - // * - // * @param symbol symbols to check - // * @return true if given symbol is treated by the current model as white space symbol during formatting; - // * false otherwise - // */ - //boolean isWhiteSpaceSymbol(char symbol); } diff --git a/platform/lang-impl/src/com/intellij/formatting/InitialInfoBuilder.java b/platform/lang-impl/src/com/intellij/formatting/InitialInfoBuilder.java index 32452a93129c..a9bce062de5f 100644 --- a/platform/lang-impl/src/com/intellij/formatting/InitialInfoBuilder.java +++ b/platform/lang-impl/src/com/intellij/formatting/InitialInfoBuilder.java @@ -137,11 +137,6 @@ public class InitialInfoBuilder { return maxOffset < maxDocOffset ? maxOffset : maxDocOffset; } - /** - * Asks current builder to wrap one more remaining {@link Block code block} (if any). - * - * @return true if all blocks are wrapped; false otherwise - */ public boolean iteration() { if (myStates.isEmpty()) { return true; @@ -152,22 +147,6 @@ public class InitialInfoBuilder { return myStates.isEmpty(); } - /** - * Wraps given root block and all of its descendants and returns root block wrapper. - *

- * This method performs necessary infrastructure actions and delegates actual processing to - * {@link #buildCompositeBlock(Block, CompositeBlockWrapper, int, WrapImpl, boolean)} and - * {@link #processSimpleBlock(Block, CompositeBlockWrapper, boolean, int, Block)}. - * - * @param rootBlock block to wrap - * @param index index of the current block at its parent block. -1 may be used here if we don't - * have information about parent block - * @param parent parent block wrapper. null may be used here we no parent block wrapper exists - * @param currentWrapParent parent wrap if any; null otherwise - * @param parentBlock parent block of the block to wrap - * @param rootBlockIsRightBlock flag that shows if target block is the right-most block - * @return wrapper for the given 'rootBlock' - */ private AbstractBlockWrapper buildFrom(final Block rootBlock, final int index, @Nullable final CompositeBlockWrapper parent, @@ -556,12 +535,6 @@ public class InitialInfoBuilder { myCollectAlignmentsInsideFormattingRange = value; } - /** - * We want to wrap {@link Block code blocks} sequentially, hence, need to store a processing state and continue from the point - * where we stopped the processing last time. - *

- * Current class defines common contract for the state required for such a processing. - */ private class State { public final Block parentBlock; @@ -613,10 +586,6 @@ public class InitialInfoBuilder { return false; } - /** - * @return true if current state is processed (basically, if all {@link Block#getSubBlocks() child blocks}) - * of the {@link #parentBlock target block} are processed; false otherwise - */ public boolean isProcessed() { return myWrappedChildren.size() == parentBlock.getSubBlocks().size(); }