Skip to content

Commit

Permalink
Remove previous deprecated methods;
Browse files Browse the repository at this point in the history
  • Loading branch information
fluentfuture committed Sep 19, 2020
1 parent 0ede5f4 commit 78e288d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 111 deletions.
12 changes: 0 additions & 12 deletions mug/src/main/java/com/google/mu/util/Substring.java
Original file line number Diff line number Diff line change
Expand Up @@ -919,12 +919,6 @@ public String before() {
return context.substring(0, startIndex);
}

/** Use {@link #before} instead. */
@Deprecated
public String getBefore() {
return before();
}

/**
* Returns the part of the original string before the matched substring.
*
Expand All @@ -941,12 +935,6 @@ public String after() {
return context.substring(endIndex);
}

/** Use {@link #after} instead. */
@Deprecated
public String getAfter() {
return after();
}

/** Return the full string being matched against. */
public String fullString() {
return context;
Expand Down
76 changes: 0 additions & 76 deletions mug/src/main/java/com/google/mu/util/graph/CycleDetector.java

This file was deleted.

6 changes: 0 additions & 6 deletions mug/src/main/java/com/google/mu/util/stream/BiIteration.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ public final BiIteration<L, R> yield(Continuation continuation) {
return this;
}

/** @deprecated Use {@link #iterate} instead. */
@Deprecated
public final BiStream<L, R> stream() {
return iterate();
}

/**
* Starts iteration over the {@link #yield yielded} pairs.
*
Expand Down
6 changes: 0 additions & 6 deletions mug/src/main/java/com/google/mu/util/stream/Iteration.java
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,6 @@ public final Iteration<T> yield(
});
}

/** @deprecated Use {@link #iterate} instead. */
@Deprecated
public final Stream<T> stream() {
return iterate();
}

/**
* Starts iteration over the {@link #yield yielded} elements.
*
Expand Down
11 changes: 0 additions & 11 deletions mug/src/main/java/com/google/mu/util/stream/MoreStreams.java
Original file line number Diff line number Diff line change
Expand Up @@ -312,17 +312,6 @@ public static Stream<Integer> indexesFrom(int firstIndex) {
return IntStream.iterate(firstIndex, i -> i + 1).boxed();
}

/**
* @deprecated Use {@code whileNotNull(queue::poll)} in place of {@code
* whileNotEmpty(queue).map(Queue::remove)}, and {@code whileNotNull(stack::poll)} in place of
* {@code whileNotEmpty(stack).map(Deque::poll)}.
*/
@Deprecated
public static <C extends Collection<?>> Stream<C> whileNotEmpty(C collection) {
requireNonNull(collection);
return whileNotNull(() -> collection.isEmpty() ? null : collection);
}

/**
* Similar to {@link Stream#generate}, returns an infinite, sequential, unordered, and non-null
* stream where each element is generated by the provided Supplier. The stream however will
Expand Down

0 comments on commit 78e288d

Please sign in to comment.