mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] remove deprecated class
GitOrigin-RevId: f9d8d4a47300b966b4fbd78dfc319ca8fa0f44f4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f02ae9ae87
commit
8d89d5b5ca
@@ -25,7 +25,6 @@ import java.util.Set;
|
||||
|
||||
/**
|
||||
* PermanentGraph is created once per repository, and forever until the log is refreshed. <br/>
|
||||
* An instance can be created by {@link PermanentGraphBuilder}. <br/>
|
||||
* This graph contains all commits in the log and may occupy a lot of memory.
|
||||
*
|
||||
* @see VisibleGraph
|
||||
|
||||
@@ -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<Id> {
|
||||
|
||||
@Deprecated
|
||||
@NotNull
|
||||
PermanentGraph<Id> build(@NotNull List<? extends GraphCommit<Id>> commits);
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
<idea-plugin>
|
||||
|
||||
<extensions defaultExtensionNs="com.intellij">
|
||||
<applicationService serviceInterface="com.intellij.vcs.log.graph.PermanentGraphBuilder"
|
||||
serviceImplementation="com.intellij.vcs.log.graph.PermanentGraphBuilderImpl"/>
|
||||
</extensions>
|
||||
|
||||
</idea-plugin>
|
||||
|
||||
@@ -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<CommitId> implements PermanentGraphBuilder<CommitId> {
|
||||
|
||||
private final GraphColorManager<CommitId> STUB_COLOR_MANAGER = new GraphColorManager<CommitId>() {
|
||||
@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<CommitId> build(@NotNull List<? extends GraphCommit<CommitId>> commits) {
|
||||
return PermanentGraphImpl.newInstance(commits, STUB_COLOR_MANAGER, Collections.emptySet());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user