diff --git a/platform/vcs-log/graph-api/src/com/intellij/vcs/log/graph/PermanentGraph.java b/platform/vcs-log/graph-api/src/com/intellij/vcs/log/graph/PermanentGraph.java index 28c2a3a00d9b..afae772e5f14 100644 --- a/platform/vcs-log/graph-api/src/com/intellij/vcs/log/graph/PermanentGraph.java +++ b/platform/vcs-log/graph-api/src/com/intellij/vcs/log/graph/PermanentGraph.java @@ -25,7 +25,6 @@ import java.util.Set; /** * PermanentGraph is created once per repository, and forever until the log is refreshed.
- * An instance can be created by {@link PermanentGraphBuilder}.
* This graph contains all commits in the log and may occupy a lot of memory. * * @see VisibleGraph diff --git a/platform/vcs-log/graph-api/src/com/intellij/vcs/log/graph/PermanentGraphBuilder.java b/platform/vcs-log/graph-api/src/com/intellij/vcs/log/graph/PermanentGraphBuilder.java deleted file mode 100644 index e3ec32a5c056..000000000000 --- a/platform/vcs-log/graph-api/src/com/intellij/vcs/log/graph/PermanentGraphBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2000-2014 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.vcs.log.graph; - -import org.jetbrains.annotations.NotNull; - -import java.util.List; - -@Deprecated -public interface PermanentGraphBuilder { - - @Deprecated - @NotNull - PermanentGraph build(@NotNull List> commits); -} diff --git a/platform/vcs-log/graph/src/META-INF/vcs-log-graph.xml b/platform/vcs-log/graph/src/META-INF/vcs-log-graph.xml deleted file mode 100644 index 148291f2aa83..000000000000 --- a/platform/vcs-log/graph/src/META-INF/vcs-log-graph.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - diff --git a/platform/vcs-log/graph/src/com/intellij/vcs/log/graph/PermanentGraphBuilderImpl.java b/platform/vcs-log/graph/src/com/intellij/vcs/log/graph/PermanentGraphBuilderImpl.java deleted file mode 100644 index 0daf01f6851a..000000000000 --- a/platform/vcs-log/graph/src/com/intellij/vcs/log/graph/PermanentGraphBuilderImpl.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2000-2014 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.vcs.log.graph; - -import com.intellij.vcs.log.graph.impl.facade.PermanentGraphImpl; -import org.jetbrains.annotations.NotNull; - -import java.util.Collections; -import java.util.List; - -@Deprecated -public class PermanentGraphBuilderImpl implements PermanentGraphBuilder { - - private final GraphColorManager STUB_COLOR_MANAGER = new GraphColorManager() { - @Override - public int getColorOfBranch(CommitId headCommit) { - return headCommit.hashCode(); - } - - @Override - public int getColorOfFragment(CommitId headCommit, int magicIndex) { - return magicIndex; - } - - @Override - public int compareHeads(CommitId head1, CommitId head2) { - return 0; - } - }; - - @NotNull - @Override - public PermanentGraph build(@NotNull List> commits) { - return PermanentGraphImpl.newInstance(commits, STUB_COLOR_MANAGER, Collections.emptySet()); - } -}