Skip to content

Commit

Permalink
Remove Graphs.equivalent() methods. Please use graphA.equals(graphB),…
Browse files Browse the repository at this point in the history
… or Objects.equals(graphA, graphB) instead.

RELNOTES=remove Graphs.equivalent()

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=182890292
  • Loading branch information
kluever authored and cpovirk committed Jan 23, 2018
1 parent f91ef6c commit 41fa39f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 64 deletions.
32 changes: 0 additions & 32 deletions android/guava/src/com/google/common/graph/Graphs.java
Expand Up @@ -209,38 +209,6 @@ public static <N> Set<N> reachableNodes(Graph<N> graph, N node) {
return Collections.unmodifiableSet(visitedNodes);
}

/**
* @deprecated Use {@link Graph#equals(Object)} instead. This method is scheduled to be removed in
* April 2018.
*/
// TODO(b/72241742): Remove by 2018-04
@Deprecated
public static boolean equivalent(@NullableDecl Graph<?> graphA, @NullableDecl Graph<?> graphB) {
return Objects.equal(graphA, graphB);
}

/**
* @deprecated Use {@link ValueGraph#equals(Object)} instead. This method is scheduled to be
* removed in April 2018.
*/
// TODO(b/72241742): Remove by 2018-04
@Deprecated
public static boolean equivalent(
@NullableDecl ValueGraph<?, ?> graphA, @NullableDecl ValueGraph<?, ?> graphB) {
return Objects.equal(graphA, graphB);
}

/**
* @deprecated Use {@link Network#equals(Object)} instead. This method is scheduled to be removed
* in April 2018.
*/
// TODO(b/72241742): Remove by 2018-04
@Deprecated
public static boolean equivalent(
@NullableDecl Network<?, ?> networkA, @NullableDecl Network<?, ?> networkB) {
return Objects.equal(networkA, networkB);
}

// Graph mutation methods

// Graph view methods
Expand Down
32 changes: 0 additions & 32 deletions guava/src/com/google/common/graph/Graphs.java
Expand Up @@ -210,38 +210,6 @@ public static <N> Set<N> reachableNodes(Graph<N> graph, N node) {
return Collections.unmodifiableSet(visitedNodes);
}

/**
* @deprecated Use {@link Graph#equals(Object)} instead. This method is scheduled to be removed in
* April 2018.
*/
// TODO(b/72241742): Remove by 2018-04
@Deprecated
public static boolean equivalent(@NullableDecl Graph<?> graphA, @NullableDecl Graph<?> graphB) {
return Objects.equal(graphA, graphB);
}

/**
* @deprecated Use {@link ValueGraph#equals(Object)} instead. This method is scheduled to be
* removed in April 2018.
*/
// TODO(b/72241742): Remove by 2018-04
@Deprecated
public static boolean equivalent(
@NullableDecl ValueGraph<?, ?> graphA, @NullableDecl ValueGraph<?, ?> graphB) {
return Objects.equal(graphA, graphB);
}

/**
* @deprecated Use {@link Network#equals(Object)} instead. This method is scheduled to be removed
* in April 2018.
*/
// TODO(b/72241742): Remove by 2018-04
@Deprecated
public static boolean equivalent(
@NullableDecl Network<?, ?> networkA, @NullableDecl Network<?, ?> networkB) {
return Objects.equal(networkA, networkB);
}

// Graph mutation methods

// Graph view methods
Expand Down

0 comments on commit 41fa39f

Please sign in to comment.