[platform] API cleanup: remove unused deprecated API NamedJDOMExternalizable (IJPL-156972)

GitOrigin-RevId: 60a233ca2304d8830228d3961a40e1f291e0afec
This commit is contained in:
Nikolay Chashnikov
2024-10-04 17:22:43 +02:00
committed by intellij-monorepo-bot
parent 97b15632c2
commit 2a4136e03c
3 changed files with 1 additions and 37 deletions

View File

@@ -94,10 +94,7 @@ open class ApplicationStoreImpl(private val app: Application) : ComponentStoreWi
class ApplicationStateStorageManager(pathMacroManager: PathMacroManager? = null, controller: SettingsController?)
: StateStorageManagerImpl(rootTagName = "application", pathMacroManager?.createTrackingSubstitutor(), componentManager = null, controller)
{
override fun getOldStorageSpec(component: Any, componentName: String, operation: StateStorageOperation): String =
@Suppress("DEPRECATION")
if (component is com.intellij.openapi.util.NamedJDOMExternalizable) "${component.externalFileName}${PathManager.DEFAULT_EXT}"
else StoragePathMacros.NON_ROAMABLE_FILE
override fun getOldStorageSpec(component: Any, componentName: String, operation: StateStorageOperation): String = StoragePathMacros.NON_ROAMABLE_FILE
override val isUseXmlProlog: Boolean
get() = false

View File

@@ -775,9 +775,6 @@ f:com.intellij.openapi.util.MutualMap
- put(java.lang.Object,java.lang.Object):V
- remove(java.lang.Object):V
- size():I
com.intellij.openapi.util.NamedJDOMExternalizable
- com.intellij.openapi.util.JDOMExternalizable
- a:getExternalFileName():java.lang.String
@:com.intellij.openapi.util.NlsContext
- java.lang.annotation.Annotation
- a:prefix():java.lang.String

View File

@@ -1,30 +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.openapi.util;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NonNls;
/**
* @deprecated use {@link com.intellij.openapi.components.PersistentStateComponent} instead and specify file name in
* {@link com.intellij.openapi.components.State} annotation.
*/
@SuppressWarnings("DeprecatedIsStillUsed")
@ApiStatus.ScheduledForRemoval
@Deprecated
public interface NamedJDOMExternalizable extends JDOMExternalizable {
@NonNls String getExternalFileName();
}