Skip to content

Commit 78e288d

Browse files
committed
Remove previous deprecated methods;
1 parent 0ede5f4 commit 78e288d

File tree

5 files changed

+0
-111
lines changed

5 files changed

+0
-111
lines changed

mug/src/main/java/com/google/mu/util/Substring.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -919,12 +919,6 @@ public String before() {
919919
return context.substring(0, startIndex);
920920
}
921921

922-
/** Use {@link #before} instead. */
923-
@Deprecated
924-
public String getBefore() {
925-
return before();
926-
}
927-
928922
/**
929923
* Returns the part of the original string before the matched substring.
930924
*
@@ -941,12 +935,6 @@ public String after() {
941935
return context.substring(endIndex);
942936
}
943937

944-
/** Use {@link #after} instead. */
945-
@Deprecated
946-
public String getAfter() {
947-
return after();
948-
}
949-
950938
/** Return the full string being matched against. */
951939
public String fullString() {
952940
return context;

mug/src/main/java/com/google/mu/util/graph/CycleDetector.java

Lines changed: 0 additions & 76 deletions
This file was deleted.

mug/src/main/java/com/google/mu/util/stream/BiIteration.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ public final BiIteration<L, R> yield(Continuation continuation) {
4444
return this;
4545
}
4646

47-
/** @deprecated Use {@link #iterate} instead. */
48-
@Deprecated
49-
public final BiStream<L, R> stream() {
50-
return iterate();
51-
}
52-
5347
/**
5448
* Starts iteration over the {@link #yield yielded} pairs.
5549
*

mug/src/main/java/com/google/mu/util/stream/Iteration.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,6 @@ public final Iteration<T> yield(
251251
});
252252
}
253253

254-
/** @deprecated Use {@link #iterate} instead. */
255-
@Deprecated
256-
public final Stream<T> stream() {
257-
return iterate();
258-
}
259-
260254
/**
261255
* Starts iteration over the {@link #yield yielded} elements.
262256
*

mug/src/main/java/com/google/mu/util/stream/MoreStreams.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -312,17 +312,6 @@ public static Stream<Integer> indexesFrom(int firstIndex) {
312312
return IntStream.iterate(firstIndex, i -> i + 1).boxed();
313313
}
314314

315-
/**
316-
* @deprecated Use {@code whileNotNull(queue::poll)} in place of {@code
317-
* whileNotEmpty(queue).map(Queue::remove)}, and {@code whileNotNull(stack::poll)} in place of
318-
* {@code whileNotEmpty(stack).map(Deque::poll)}.
319-
*/
320-
@Deprecated
321-
public static <C extends Collection<?>> Stream<C> whileNotEmpty(C collection) {
322-
requireNonNull(collection);
323-
return whileNotNull(() -> collection.isEmpty() ? null : collection);
324-
}
325-
326315
/**
327316
* Similar to {@link Stream#generate}, returns an infinite, sequential, unordered, and non-null
328317
* stream where each element is generated by the provided Supplier. The stream however will

0 commit comments

Comments
 (0)