Skip to content

Commit 041dad4

Browse files
committed
Fixed warnings on Xcode Beta 3
1 parent c5a8fc0 commit 041dad4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/Signal.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ extension SignalType {
244244
}
245245

246246
/// Maps each value in the signal to a new value.
247-
@warn_unused_result(message: "Did you forget to add and observer to the signal?")
248247
public func map<U>(transform: (Value) -> U) -> Signal<U, Error> {
249248
return Signal { observer in
250249
return self.on { event -> Void in
@@ -254,7 +253,6 @@ extension SignalType {
254253
}
255254

256255
/// Maps errors in the signal to a new error.
257-
@warn_unused_result(message: "Did you forget to add and observer to the signal?")
258256
public func mapError<F>(transform: (Error) -> F) -> Signal<Value, F> {
259257
return Signal { observer in
260258
return self.on { event -> Void in
@@ -264,7 +262,6 @@ extension SignalType {
264262
}
265263

266264
/// Preserves only the values of the signal that pass the given predicate.
267-
@warn_unused_result(message: "Did you forget to add and observer to the signal?")
268265
public func filter(predicate: (Value) -> Bool) -> Signal<Value, Error> {
269266
return Signal { observer in
270267
return self.on { (event: Event<Value, Error>) -> Void in
@@ -281,7 +278,6 @@ extension SignalType {
281278
}
282279

283280
/// Aggregate values into a single combined value. Mirrors the Swift Collection
284-
@warn_unused_result(message: "Did you forget to add and observer to the signal?")
285281
public func reduce<T>(initial: T, _ combine: (T, Value) -> T) -> Signal<T, Error> {
286282
return Signal { observer in
287283
var accumulator = initial

0 commit comments

Comments
 (0)