Skip to content

Commit 7aadeb9

Browse files
Merge pull request #1806 from benjchristensen/remove-utilities
Remove Unnecessary Utilities
2 parents 03295a2 + ebaf9a1 commit 7aadeb9

File tree

3 files changed

+0
-109
lines changed

3 files changed

+0
-109
lines changed

src/main/java/rx/functions/Actions.java

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -90,60 +90,6 @@ public void call(Object... args) {
9090
}
9191
}
9292

93-
/**
94-
* Extracts a method reference to the Observer's {@link Observer#onNext onNext} method in the form of an
95-
* {@link Action1}.
96-
* <p>Java 8: observer::onNext</p>
97-
*
98-
* @param observer
99-
* the {@link Observer} to use
100-
* @return an action which calls observer's {@code onNext} method.
101-
*/
102-
public static <T> Action1<T> onNextFrom(final Observer<T> observer) {
103-
return new Action1<T>() {
104-
@Override
105-
public void call(T t1) {
106-
observer.onNext(t1);
107-
}
108-
};
109-
}
110-
111-
/**
112-
* Extracts a method reference to the Observer's {@link Observer#onError(java.lang.Throwable) onError}
113-
* method in the form of an {@link Action1}.
114-
* <p>Java 8: observer::onError</p>
115-
*
116-
* @param observer
117-
* the {@link Observer} to use
118-
* @return an action which calls observer's {@code onError} method.
119-
*/
120-
public static <T> Action1<Throwable> onErrorFrom(final Observer<T> observer) {
121-
return new Action1<Throwable>() {
122-
@Override
123-
public void call(Throwable t1) {
124-
observer.onError(t1);
125-
}
126-
};
127-
}
128-
129-
/**
130-
* Extracts a method reference to the Observer's {@link Observer#onCompleted() onCompleted} method in the
131-
* form of an {@link Action0}.
132-
* <p>Java 8: observer::onCompleted</p>
133-
*
134-
* @param observer
135-
* the {@link Observer} to use
136-
* @return an action which calls observer's {@code onCompleted} method.
137-
*/
138-
public static <T> Action0 onCompletedFrom(final Observer<T> observer) {
139-
return new Action0() {
140-
@Override
141-
public void call() {
142-
observer.onCompleted();
143-
}
144-
};
145-
}
146-
14793
/**
14894
* Converts an {@link Action0} to a function that calls the action and returns {@code null}.
14995
*

src/main/java/rx/functions/Functions.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -344,19 +344,6 @@ public Void call(Object... args) {
344344
};
345345
}
346346

347-
/**
348-
* Constructs a predicate that returns true for each input for which the source predicate returns false, and
349-
* vice versa.
350-
*
351-
* @param predicate
352-
* the source predicate to negate
353-
* @return a function that returns a Boolean that represents an inversion of the logical effect of
354-
* {@code predicate}
355-
*/
356-
public static <T> Func1<T, Boolean> not(Func1<? super T, Boolean> predicate) {
357-
return new Not<T>(predicate);
358-
}
359-
360347
/**
361348
* Returns a function that always returns {@code true}.
362349
*

src/main/java/rx/functions/Not.java

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

0 commit comments

Comments
 (0)