[platform analysis] API cleanup: remove unused deprecated API (IJPL-503)

GitOrigin-RevId: 56295990dd1e003396c3c3bd272e3793dafef958
This commit is contained in:
Nikolay Chashnikov
2024-05-10 10:21:42 +02:00
committed by intellij-monorepo-bot
parent e12efefd98
commit d1f06f6197
6 changed files with 0 additions and 115 deletions

View File

@@ -107,16 +107,10 @@ c:com.intellij.codeInsight.CharTailType
- toString():java.lang.String
a:com.intellij.codeInsight.TailType
- sf:CASE_COLON:com.intellij.codeInsight.TailType
- sf:COND_EXPR_COLON:com.intellij.codeInsight.TailType
- sf:DOT:com.intellij.codeInsight.TailType
- sf:EQUALS:com.intellij.codeInsight.TailType
- sf:HUMBLE_SPACE_BEFORE_WORD:com.intellij.codeInsight.TailType
- sf:INSERT_SPACE:com.intellij.codeInsight.TailType
- sf:LPARENTH:com.intellij.codeInsight.TailType
- sf:NONE:com.intellij.codeInsight.TailType
- sf:SEMICOLON:com.intellij.codeInsight.TailType
- sf:SPACE:com.intellij.codeInsight.TailType
- sf:UNKNOWN:com.intellij.codeInsight.TailType
- <init>():V
- s:createSimpleTailType(C):com.intellij.codeInsight.TailType
- ps:getFileType(com.intellij.openapi.editor.Editor):com.intellij.openapi.fileTypes.FileType

View File

@@ -9,7 +9,6 @@ import com.intellij.openapi.fileTypes.FileType;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiDocumentManager;
import com.intellij.psi.PsiFile;
import com.intellij.util.text.CharArrayUtil;
import org.jetbrains.annotations.NotNull;
/**
@@ -76,19 +75,6 @@ public abstract class TailType {
}
//<editor-fold desc="Deprecated static constants">
/** @deprecated use {@link TailTypes#unknownType()} instead. */
@Deprecated(forRemoval = true)
public static final TailType UNKNOWN = new TailType() {
@Override
public int processTail(final Editor editor, final int tailOffset) {
return tailOffset;
}
public String toString() {
return "UNKNOWN";
}
};
/** @deprecated use {@link TailTypes#noneType()} instead. */
@Deprecated(forRemoval = true)
public static final TailType NONE = new TailType() {
@@ -114,41 +100,6 @@ public abstract class TailType {
@Deprecated(forRemoval = true)
public static final TailType SPACE = new CharTailType(' ');
/**
* always insert a space
*
* @deprecated use {@link TailTypes#insertSpaceType()} instead, see <a href="#deprecated-constants">Deprecated Constants</a> for details.
*/
@Deprecated(forRemoval = true)
public static final TailType INSERT_SPACE = new CharTailType(' ', false);
/**
* insert a space unless there's one at the caret position already, followed by a word or '@'
*
* @deprecated use {@link TailTypes#humbleSpaceBeforeWordType()} instead,
* see <a href="#deprecated-constants">Deprecated Constants</a> for details.
*/
@Deprecated(forRemoval = true)
public static final TailType HUMBLE_SPACE_BEFORE_WORD = new CharTailType(' ', false) {
@Override
public boolean isApplicable(@NotNull InsertionContext context) {
CharSequence text = context.getDocument().getCharsSequence();
int tail = context.getTailOffset();
if (text.length() > tail + 1 && text.charAt(tail) == ' ') {
char ch = text.charAt(tail + 1);
if (ch == '@' || Character.isLetter(ch)) {
return false;
}
}
return super.isApplicable(context);
}
@Override
public String toString() {
return "HUMBLE_SPACE_BEFORE_WORD";
}
};
/** @deprecated use {@link TailTypes#dotType()} instead, see <a href="#deprecated-constants">Deprecated Constants</a> for details. */
@Deprecated(forRemoval = true)
public static final TailType DOT = new CharTailType('.');
@@ -157,37 +108,5 @@ public abstract class TailType {
@Deprecated(forRemoval = true)
public static final TailType CASE_COLON = new CharTailType(':');
/** @deprecated use {@link TailTypes#equalsType()} instead, see <a href="#deprecated-constants">Deprecated Constants</a> for details. */
@Deprecated(forRemoval = true)
public static final TailType EQUALS = new CharTailType('=');
/** @deprecated use {@link TailTypes#conditionalExpressionColonType()} instead. */
@Deprecated(forRemoval = true)
public static final TailType COND_EXPR_COLON = new TailType() {
@Override
public int processTail(final Editor editor, final int tailOffset) {
Document document = editor.getDocument();
int textLength = document.getTextLength();
CharSequence chars = document.getCharsSequence();
int afterWhitespace = CharArrayUtil.shiftForward(chars, tailOffset, " \n\t");
if (afterWhitespace < textLength && chars.charAt(afterWhitespace) == ':') {
return moveCaret(editor, tailOffset, afterWhitespace - tailOffset + 1);
}
document.insertString(tailOffset, " : ");
return moveCaret(editor, tailOffset, 3);
}
public String toString() {
return "COND_EXPR_COLON";
}
};
/**
* @deprecated create <code>new CharTailType('(')</code> instance instead,
* see <a href="#deprecated-constants">Deprecated Constants</a> for details.
*/
@Deprecated(forRemoval = true)
public static final TailType LPARENTH = new CharTailType('(');
//</editor-fold>
}

View File

@@ -995,7 +995,6 @@ com.intellij.codeInsight.daemon.impl.analysis.ErrorQuickFixProvider
- com.intellij.openapi.project.PossiblyDumbAware
- sf:EP_NAME:com.intellij.openapi.extensions.ExtensionPointName
- registerErrorQuickFix(com.intellij.psi.PsiErrorElement,com.intellij.codeInsight.daemon.impl.HighlightInfo$Builder):V
- registerErrorQuickFix(com.intellij.psi.PsiErrorElement,com.intellij.codeInsight.daemon.impl.HighlightInfo):V
c:com.intellij.codeInsight.daemon.impl.analysis.HighlightInfoHolder
- <init>(com.intellij.psi.PsiFile,com.intellij.codeInsight.daemon.impl.HighlightInfoFilter[]):V
- add(com.intellij.codeInsight.daemon.impl.HighlightInfo):Z
@@ -1016,7 +1015,6 @@ a:com.intellij.codeInsight.daemon.impl.analysis.HighlightingLevelManager
- a:shouldInspect(com.intellij.psi.PsiElement):Z
f:com.intellij.codeInsight.daemon.impl.quickfix.QuickFixAction
- s:registerQuickFixAction(com.intellij.codeInsight.daemon.impl.HighlightInfo,com.intellij.codeInsight.intention.IntentionAction):V
- s:registerQuickFixAction(com.intellij.codeInsight.daemon.impl.HighlightInfo,com.intellij.codeInsight.intention.IntentionAction,java.util.List,java.lang.String):V
- s:registerQuickFixActions(com.intellij.codeInsight.daemon.impl.HighlightInfo$Builder,com.intellij.openapi.util.TextRange,java.lang.Iterable):V
- s:registerQuickFixActions(com.intellij.codeInsight.daemon.impl.HighlightInfo,com.intellij.openapi.util.TextRange,java.lang.Iterable):V
c:com.intellij.codeInsight.dataflow.DFAEngine

View File

@@ -80,9 +80,6 @@ final class DefaultHighlightVisitor implements HighlightVisitor, DumbAware {
HighlightInfo info = builder.create();
if (info != null) {
info.toolId = DefaultHighlightVisitor.class;
for (ErrorQuickFixProvider provider : providers) {
provider.registerErrorQuickFix(element, info);
}
}
return info;
}

View File

@@ -10,14 +10,6 @@ import org.jetbrains.annotations.NotNull;
public interface ErrorQuickFixProvider extends PossiblyDumbAware {
ExtensionPointName<ErrorQuickFixProvider> EP_NAME = ExtensionPointName.create("com.intellij.errorQuickFixProvider");
/**
* @deprecated implement {@link #registerErrorQuickFix(PsiErrorElement, HighlightInfo.Builder)} instead
*/
@Deprecated(forRemoval = true)
default void registerErrorQuickFix(@NotNull PsiErrorElement errorElement, @NotNull HighlightInfo highlightInfo) {
}
default void registerErrorQuickFix(@NotNull PsiErrorElement errorElement, @NotNull HighlightInfo.Builder builder) {
}
}

View File

@@ -6,7 +6,6 @@ import com.intellij.codeInsight.daemon.HighlightDisplayKey;
import com.intellij.codeInsight.daemon.impl.HighlightInfo;
import com.intellij.codeInsight.intention.IntentionAction;
import com.intellij.openapi.util.TextRange;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -28,20 +27,6 @@ public final class QuickFixAction {
}
}
/**
* @deprecated use {@link HighlightInfo.Builder#registerFix(IntentionAction, List, String, TextRange, HighlightDisplayKey)} instead
*/
@Deprecated(forRemoval = true)
public static void registerQuickFixAction(@Nullable HighlightInfo info,
@Nullable IntentionAction action,
@Nullable List<? extends IntentionAction> options,
@Nullable @Nls String displayName) {
if (info != null) {
info.registerFix(action, options, displayName, null, null);
}
}
public static void registerQuickFixActions(@Nullable HighlightInfo.Builder builder,
@Nullable TextRange fixRange,
@NotNull Iterable<? extends IntentionAction> actions) {