VisibilityChecker: Remove deprecated variant of isReachableFrom This deprecated variant was already calling the new one. Subclasses should move to override the new method. Change-Id: I2a3708dfd44dbaf047d785d56dfc9c732ec7c924
diff --git a/java/com/google/gitiles/VisibilityChecker.java b/java/com/google/gitiles/VisibilityChecker.java index 49a6402..4d01024 100644 --- a/java/com/google/gitiles/VisibilityChecker.java +++ b/java/com/google/gitiles/VisibilityChecker.java
@@ -16,8 +16,6 @@ import com.google.common.collect.ImmutableList; import java.io.IOException; -import java.util.Collection; -import java.util.Objects; import java.util.stream.Stream; import org.eclipse.jgit.annotations.Nullable; import org.eclipse.jgit.lib.ObjectId; @@ -53,27 +51,6 @@ /** * Check if {@code commit} is reachable starting from {@code starters}. * - * @param description Description of the ids (e.g. "heads"). Mainly for tracing. - * @param walk The walk to use for the reachability check - * @param commit The starting commit. It *MUST* come from the walk in use - * @param starters visible commits. Anything reachable from these commits is visible. Missing ids - * or ids referring to other kinds of objects are ignored. - * @return true if we can get to {@code commit} from the {@code starters} - * @throws IOException a pack file or loose object could not be read - * @deprecated see {@link #isReachableFrom(RevWalk, RevCommit, Stream)} - */ - @Deprecated - protected boolean isReachableFrom( - String description, RevWalk walk, RevCommit commit, Collection<ObjectId> starters) - throws IOException { - Stream<RevCommit> startCommits = - starters.stream().map(objId -> objectIdToRevCommit(walk, objId)).filter(Objects::nonNull); - return isReachableFrom(walk, commit, startCommits); - } - - /** - * Check if {@code commit} is reachable starting from {@code starters}. - * * @param walk The walk to use for the reachability check * @param commit The starting commit. It *MUST* come from the walk in use * @param starters visible commits. Anything reachable from these commits is visible. Missing ids