From ae20d4bfbca682974768b4734717e7ff3d6268d3 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 17 Jun 2019 12:29:59 +0200 Subject: [PATCH] Remove extension point from 2007 which isn't used in either IDEA or external plugins GitOrigin-RevId: 5a06e29c45089c7b1c012d30a9cd942bbb28d5af --- .../fileTypes/ex/CustomFileTypeFactory.java | 28 ------------------- .../fileTypes/impl/FileTypeManagerImpl.java | 11 +------- .../src/META-INF/PlatformExtensionPoints.xml | 1 - 3 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 platform/platform-impl/src/com/intellij/openapi/fileTypes/ex/CustomFileTypeFactory.java diff --git a/platform/platform-impl/src/com/intellij/openapi/fileTypes/ex/CustomFileTypeFactory.java b/platform/platform-impl/src/com/intellij/openapi/fileTypes/ex/CustomFileTypeFactory.java deleted file mode 100644 index 839cfd6e38dc..000000000000 --- a/platform/platform-impl/src/com/intellij/openapi/fileTypes/ex/CustomFileTypeFactory.java +++ /dev/null @@ -1,28 +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.fileTypes.ex; - -import com.intellij.openapi.extensions.ExtensionPointName; -import com.intellij.openapi.fileTypes.UserFileType; -import org.jdom.Element; -import org.jetbrains.annotations.Nullable; - -public interface CustomFileTypeFactory { - ExtensionPointName EP_NAME = ExtensionPointName.create("com.intellij.customFileTypeFactory"); - - @Nullable - UserFileType createFileType(Element element); -} \ No newline at end of file diff --git a/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeManagerImpl.java b/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeManagerImpl.java index 70d6666ec3c5..2b7e515d39b9 100644 --- a/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeManagerImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeManagerImpl.java @@ -1506,16 +1506,7 @@ public class FileTypeManagerImpl extends FileTypeManagerEx implements Persistent Element element = typeElement.getChild(AbstractFileType.ELEMENT_HIGHLIGHTING); if (element == null) { - for (CustomFileTypeFactory factory : CustomFileTypeFactory.EP_NAME.getExtensions()) { - type = factory.createFileType(typeElement); - if (type != null) { - break; - } - } - - if (type == null) { - type = new UserBinaryFileType(); - } + type = new UserBinaryFileType(); } else { SyntaxTable table = AbstractFileType.readSyntaxTable(element); diff --git a/platform/platform-resources/src/META-INF/PlatformExtensionPoints.xml b/platform/platform-resources/src/META-INF/PlatformExtensionPoints.xml index afe9fca66d8f..0fc04d3a4450 100644 --- a/platform/platform-resources/src/META-INF/PlatformExtensionPoints.xml +++ b/platform/platform-resources/src/META-INF/PlatformExtensionPoints.xml @@ -89,7 +89,6 @@ -