IJPL-212619 Java: remove deprecated API, which was marked for removal and has no usages

Space-RevId: 03757d83c4ac1f0aba4d7dd2b1c94e065cf161d0

GitOrigin-RevId: fcb1a89583973b2cd6d5e06e53c7ee5cab957836
This commit is contained in:
Nikolay Chashnikov
2026-01-26 20:01:33 +00:00
committed by intellij-monorepo-bot
parent 8619262938
commit 9718731f33
17 changed files with 3 additions and 234 deletions
@@ -10,7 +10,6 @@ import com.intellij.codeInspection.ex.EntryPointsManagerBase;
import com.intellij.codeInspection.reference.UnusedDeclarationFixProvider;
import com.intellij.find.findUsages.*;
import com.intellij.ide.highlighter.XmlFileType;
import com.intellij.openapi.progress.ProgressIndicator;
import com.intellij.openapi.progress.ProgressManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.NlsContexts;
@@ -210,20 +209,6 @@ public final class UnusedSymbolUtil {
return useScope;
}
/**
* @deprecated use {@link #processUsages(Project, PsiFile, SearchScope, PsiMember, PsiFile, Processor)}
*/
@SuppressWarnings("unused")
@Deprecated(forRemoval = true)
public static boolean processUsages(@NotNull Project project,
@NotNull PsiFile containingFile,
@NotNull PsiMember member,
@NotNull ProgressIndicator progress,
@Nullable PsiFile ignoreFile,
@NotNull Processor<? super UsageInfo> usageInfoProcessor) {
return processUsages(project, containingFile, member, ignoreFile, usageInfoProcessor);
}
// return false if can't process usages (weird member of too may usages) or processor returned false
public static boolean processUsages(@NotNull Project project,
@NotNull PsiFile containingFile,
@@ -3,9 +3,6 @@ package com.intellij.codeInsight.daemon.impl.analysis;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiVariable;
import com.intellij.psi.controlFlow.AnalysisCanceledException;
import com.intellij.psi.controlFlow.ControlFlow;
import com.intellij.psi.controlFlow.ControlFlowFactory;
import com.intellij.psi.controlFlow.ControlFlowUtil;
import org.jetbrains.annotations.NotNull;
@@ -17,14 +14,6 @@ public final class HighlightControlFlowUtil {
private HighlightControlFlowUtil() { }
/**
* @deprecated use {@link ControlFlowFactory#getControlFlowNoConstantEvaluate(PsiElement)}
*/
@Deprecated(forRemoval = true)
public static @NotNull ControlFlow getControlFlowNoConstantEvaluate(@NotNull PsiElement body) throws AnalysisCanceledException {
return ControlFlowFactory.getControlFlowNoConstantEvaluate(body);
}
/**
* @deprecated use {@link ControlFlowUtil#variableDefinitelyAssignedIn(PsiVariable, PsiElement)}
*/
@@ -1,31 +0,0 @@
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInspection.dataFlow.java.inst;
import com.intellij.codeInspection.dataFlow.lang.DfaAnchor;
import com.intellij.codeInspection.dataFlow.lang.ir.Instruction;
import com.intellij.codeInspection.dataFlow.lang.ir.PushInstruction;
import com.intellij.codeInspection.dataFlow.value.DfaValue;
import com.intellij.codeInspection.dataFlow.value.DfaValueFactory;
import org.jetbrains.annotations.NotNull;
/**
* @deprecated use simply {@link PushInstruction}. If escaping processing is necessary (which is unlikely),
* emit explicit {@link EscapeInstruction}.
*/
@Deprecated(forRemoval = true)
public class JvmPushInstruction extends PushInstruction {
public JvmPushInstruction(@NotNull DfaValue value, DfaAnchor place) {
this(value, place, false);
}
public JvmPushInstruction(@NotNull DfaValue value, DfaAnchor place, final boolean isReferenceWrite) {
super(value, place);
assert place == null || !isReferenceWrite;
}
@Override
public @NotNull Instruction bindToFactory(@NotNull DfaValueFactory factory) {
return new JvmPushInstruction(getValue().bindToFactory(factory), getDfaAnchor());
}
}