From 7405cc3138fdda7960bbe5cbdddfffd372577577 Mon Sep 17 00:00:00 2001 From: Konstantin Kolosovsky Date: Fri, 4 Nov 2016 16:32:26 +0300 Subject: [PATCH] vcs: Removed unused classes/interfaces Removed "VcsDataConstants", "Details", "LineProcessEventListenerAdapter", "BlockReloadingUtil" --- .../src/com/intellij/openapi/vcs/Details.java | 28 -------------- .../vcs/LineProcessEventListenerAdapter.java | 38 ------------------- .../openapi/vcs/VcsDataConstants.java | 31 --------------- .../vcs/update/BlockReloadingUtil.java | 32 ---------------- 4 files changed, 129 deletions(-) delete mode 100644 platform/vcs-api/src/com/intellij/openapi/vcs/Details.java delete mode 100644 platform/vcs-api/src/com/intellij/openapi/vcs/LineProcessEventListenerAdapter.java delete mode 100644 platform/vcs-api/src/com/intellij/openapi/vcs/VcsDataConstants.java delete mode 100644 platform/vcs-impl/src/com/intellij/openapi/vcs/update/BlockReloadingUtil.java diff --git a/platform/vcs-api/src/com/intellij/openapi/vcs/Details.java b/platform/vcs-api/src/com/intellij/openapi/vcs/Details.java deleted file mode 100644 index 4d59c22b0d5d..000000000000 --- a/platform/vcs-api/src/com/intellij/openapi/vcs/Details.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2000-2011 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.vcs; - -/** - * @author irengrig - * Date: 7/5/11 - * Time: 7:32 PM - */ -public interface Details { - void take(Id id, Data data) throws AlreadyDisposedException; - Id getCurrentlySelected(); - - class AlreadyDisposedException extends Exception {} -} diff --git a/platform/vcs-api/src/com/intellij/openapi/vcs/LineProcessEventListenerAdapter.java b/platform/vcs-api/src/com/intellij/openapi/vcs/LineProcessEventListenerAdapter.java deleted file mode 100644 index 16cbbf925d4d..000000000000 --- a/platform/vcs-api/src/com/intellij/openapi/vcs/LineProcessEventListenerAdapter.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2000-2013 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.vcs; - -import com.intellij.openapi.util.Key; - -/** - * Created with IntelliJ IDEA. - * User: Irina.Chernushina - * Date: 2/25/13 - * Time: 5:47 PM - */ -public class LineProcessEventListenerAdapter implements LineProcessEventListener { - @Override - public void onLineAvailable(String line, Key outputType) { - } - - @Override - public void processTerminated(int exitCode) { - } - - @Override - public void startFailed(Throwable exception) { - } -} diff --git a/platform/vcs-api/src/com/intellij/openapi/vcs/VcsDataConstants.java b/platform/vcs-api/src/com/intellij/openapi/vcs/VcsDataConstants.java deleted file mode 100644 index 7de8abf6fe14..000000000000 --- a/platform/vcs-api/src/com/intellij/openapi/vcs/VcsDataConstants.java +++ /dev/null @@ -1,31 +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.vcs; - -/** - * @deprecated use {@link com.intellij.openapi.vcs.VcsDataKeys} instead - */ -@SuppressWarnings({"UnusedDeclaration"}) -public interface VcsDataConstants { - String IO_FILE_ARRAY = VcsDataKeys.IO_FILE_ARRAY.getName(); - String IO_FILE = VcsDataKeys.IO_FILE.getName(); - String VCS_FILE_REVISION = VcsDataKeys.VCS_FILE_REVISION.getName(); - String VCS_FILE_REVISIONS = VcsDataKeys.VCS_FILE_REVISIONS.getName(); - String VCS_VIRTUAL_FILE = VcsDataKeys.VCS_VIRTUAL_FILE.getName(); - String FILE_PATH = VcsDataKeys.FILE_PATH.getName(); - String FILE_PATH_ARRAY = VcsDataKeys.FILE_PATH_ARRAY.getName(); - String FILE_HISTORY_PANEL = VcsDataKeys.FILE_HISTORY_PANEL.getName(); -} diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/update/BlockReloadingUtil.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/update/BlockReloadingUtil.java deleted file mode 100644 index 40ddcd5e6bc3..000000000000 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/update/BlockReloadingUtil.java +++ /dev/null @@ -1,32 +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.vcs.update; - -import com.intellij.openapi.project.ex.ProjectManagerEx; - -@Deprecated -public class BlockReloadingUtil { - private BlockReloadingUtil() { - } - - public static void block() { - ProjectManagerEx.getInstanceEx().blockReloadingProjectOnExternalChanges(); - } - - public static void unblock() { - ProjectManagerEx.getInstanceEx().unblockReloadingProjectOnExternalChanges(); - } -}