mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 13:31:28 +07:00
cleanup: remove unused deprecated API (IDEA-295370)
GitOrigin-RevId: 439b59d8cf266e48f703345e656e4f29e617d00d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
07946fb1dd
commit
a0de92e1f3
@@ -1,16 +0,0 @@
|
||||
// Please, don't add new functions to this file.
|
||||
package org.jetbrains.plugins.notebooks.editor
|
||||
|
||||
import com.intellij.openapi.editor.Editor
|
||||
import com.intellij.openapi.editor.event.DocumentListener
|
||||
import com.intellij.openapi.editor.impl.EditorImpl
|
||||
import org.jetbrains.annotations.ApiStatus.ScheduledForRemoval
|
||||
|
||||
@Deprecated("Just inline this simple function")
|
||||
@ScheduledForRemoval
|
||||
fun Editor.addEditorDocumentListener(listener: DocumentListener) {
|
||||
require(this is EditorImpl)
|
||||
if (!isDisposed) {
|
||||
document.addDocumentListener(listener, disposable)
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.intellij.execution.junit;
|
||||
|
||||
import com.intellij.execution.configurations.ConfigurationType;
|
||||
import com.intellij.execution.testframework.AbstractInClassConfigurationProducer;
|
||||
|
||||
@Deprecated(forRemoval = true)
|
||||
public abstract class AbstractTestClassConfigurationProducer extends AbstractInClassConfigurationProducer<JUnitConfiguration> {
|
||||
protected AbstractTestClassConfigurationProducer(ConfigurationType configurationType) {
|
||||
super(configurationType);
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
// Copyright 2000-2018 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.execution.junit;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@Deprecated(forRemoval = true)
|
||||
public class AllInDirectoryConfigurationProducer extends AbstractAllInDirectoryConfigurationProducer {
|
||||
public AllInDirectoryConfigurationProducer() {
|
||||
}
|
||||
}
|
||||
@@ -62,22 +62,6 @@ data class ProjectModule @JvmOverloads constructor(
|
||||
val dependencyDeclarationCallback: DependencyDeclarationCallback = { _ -> CompletableFuture.completedFuture(null) }
|
||||
) {
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
@Deprecated(
|
||||
"Use main constructor",
|
||||
ReplaceWith("ProjectModule(name, nativeModule, parent, buildFile, projectDir, buildSystemType, moduleType)")
|
||||
)
|
||||
@ScheduledForRemoval
|
||||
constructor(
|
||||
name: String,
|
||||
nativeModule: Module,
|
||||
parent: ProjectModule,
|
||||
buildFile: VirtualFile,
|
||||
buildSystemType: BuildSystemType,
|
||||
moduleType: ProjectModuleType,
|
||||
navigatableDependency: (groupId: String, artifactId: String, version: PackageVersion) -> Navigatable?
|
||||
) : this(name, nativeModule, parent, buildFile, buildFile.parent.toNioPath().toFile(), buildSystemType, moduleType)
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
@Deprecated(
|
||||
"Use main constructor",
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
// Copyright 2000-2020 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 org.jetbrains.yaml;
|
||||
|
||||
import com.intellij.application.options.CodeStyleAbstractConfigurable;
|
||||
import com.intellij.application.options.CodeStyleAbstractPanel;
|
||||
import com.intellij.application.options.TabbedLanguageCodeStylePanel;
|
||||
import com.intellij.openapi.options.Configurable;
|
||||
import com.intellij.psi.codeStyle.CodeStyleSettings;
|
||||
import com.intellij.psi.codeStyle.CodeStyleSettingsProvider;
|
||||
import com.intellij.psi.codeStyle.CustomCodeStyleSettings;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.yaml.formatter.YAMLCodeStyleSettings;
|
||||
|
||||
/**
|
||||
* @deprecated This logic is moved to YAMLLanguageCodeStyleSettingsProvider.
|
||||
* This class is still needed for compatibility for Raml plugin.
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public class YAMLCodeStyleSettingsProvider extends CodeStyleSettingsProvider {
|
||||
@NotNull
|
||||
@Override
|
||||
public Configurable createSettingsPage(final @NotNull CodeStyleSettings settings, final @NotNull CodeStyleSettings originalSettings) {
|
||||
return new CodeStyleAbstractConfigurable(settings, originalSettings, YAMLLanguage.INSTANCE.getDisplayName()) {
|
||||
@Override
|
||||
protected @NotNull CodeStyleAbstractPanel createPanel(final @NotNull CodeStyleSettings settings) {
|
||||
final CodeStyleSettings currentSettings = getCurrentSettings();
|
||||
return new TabbedLanguageCodeStylePanel(YAMLLanguage.INSTANCE, currentSettings, settings) {
|
||||
@Override
|
||||
protected void initTabs(final CodeStyleSettings settings) {
|
||||
addIndentOptionsTab(settings);
|
||||
addSpacesTab(settings);
|
||||
addWrappingAndBracesTab(settings);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getHelpTopic() {
|
||||
return "reference.settingsdialog.codestyle.yaml";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getConfigurableDisplayName() {
|
||||
return YAMLLanguage.INSTANCE.getDisplayName();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public CustomCodeStyleSettings createCustomSettings(@NotNull CodeStyleSettings settings) {
|
||||
return new YAMLCodeStyleSettings(settings);
|
||||
}
|
||||
}
|
||||
@@ -46,14 +46,6 @@ public class PyUnboundLocalVariableInspection extends PyInspection {
|
||||
super(holder, context);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated do not use
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public Visitor(final ProblemsHolder holder, LocalInspectionToolSession session) {
|
||||
super(holder, session);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void visitPyReferenceExpression(final @NotNull PyReferenceExpression node) {
|
||||
if (PyResolveUtil.allowForwardReferences(node)) {
|
||||
|
||||
@@ -290,19 +290,8 @@ public abstract class AbstractXmlBlock extends AbstractBlock {
|
||||
}
|
||||
}
|
||||
|
||||
/** @deprecated use and override {@code createSimpleChild } overload with {@code range } provided */
|
||||
@SuppressWarnings("DeprecatedIsStillUsed")
|
||||
@Deprecated(forRemoval = true)
|
||||
protected XmlBlock createSimpleChild(final ASTNode child, final Indent indent, final Wrap wrap, final Alignment alignment) {
|
||||
return null;
|
||||
}
|
||||
|
||||
protected @NotNull XmlBlock createSimpleChild(@NotNull ASTNode child, @Nullable Indent indent,
|
||||
@Nullable Wrap wrap, @Nullable Alignment alignment, @Nullable TextRange range) {
|
||||
XmlBlock blockFromDeprecatedCall = createSimpleChild(child, indent, wrap, alignment);
|
||||
if (blockFromDeprecatedCall != null) {
|
||||
return blockFromDeprecatedCall;
|
||||
}
|
||||
return new XmlBlock(child, wrap, alignment, myXmlFormattingPolicy, indent, range, isPreserveSpace());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user