From b61ea4861055de9276a917ad58a86fcb4c6cab00 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Wed, 2 Oct 2019 11:01:10 +0300 Subject: [PATCH] remove useless LanguageFileType#getCharset overriders GitOrigin-RevId: a697e68ef6ffe725a07eab111821a4aff225c98a --- .../src/com/intellij/ide/scratch/ScratchFileType.java | 6 ------ python/src/com/jetbrains/pyqt/QtFileType.java | 5 ----- 2 files changed, 11 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/ide/scratch/ScratchFileType.java b/platform/lang-impl/src/com/intellij/ide/scratch/ScratchFileType.java index abac965ebed4..4fd6135719ec 100644 --- a/platform/lang-impl/src/com/intellij/ide/scratch/ScratchFileType.java +++ b/platform/lang-impl/src/com/intellij/ide/scratch/ScratchFileType.java @@ -70,10 +70,4 @@ public class ScratchFileType extends LanguageFileType implements FileTypeIdentif public boolean isReadOnly() { return true; } - - @Nullable - @Override - public String getCharset(@NotNull VirtualFile file, @NotNull byte[] content) { - return null; - } } diff --git a/python/src/com/jetbrains/pyqt/QtFileType.java b/python/src/com/jetbrains/pyqt/QtFileType.java index ccc37ba48ec6..21a44cdcf815 100644 --- a/python/src/com/jetbrains/pyqt/QtFileType.java +++ b/python/src/com/jetbrains/pyqt/QtFileType.java @@ -61,11 +61,6 @@ public abstract class QtFileType extends LanguageFileType implements INativeFile return false; } - @Override - public String getCharset(@NotNull VirtualFile file, @NotNull byte[] content) { - return null; - } - @Override public boolean openFileInAssociatedApplication(Project project, @NotNull VirtualFile file) { String qtTool = findQtTool(ModuleUtilCore.findModuleForFile(file, project), getToolName());