Skip to content

Commit

Permalink
Fixed warnings on Xcode Beta 3
Browse files Browse the repository at this point in the history
  • Loading branch information
cloutiertyler committed Jul 24, 2016
1 parent c5a8fc0 commit 041dad4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Sources/Signal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ extension SignalType {
}

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

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

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

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

0 comments on commit 041dad4

Please sign in to comment.