robb / Cartography

A declarative Auto Layout DSL for Swift :iphone::triangular_ruler:
Other
7.35k stars 525 forks source link

Swift 3.1 @discardableResult warning of constrain(clear group: ConstraintGroup) #255

Closed fiveze closed 7 years ago

fiveze commented 7 years ago

New Swift 3.1 is showing warning:

Constrain.swift:144:27: @discardableResult declared on a function returning Void is unnecessary

/// Removes all constraints for a group.
///
/// - parameter clear: The `ConstraintGroup` whose constraints should be removed.
///
@discardableResult public func constrain(clear group: ConstraintGroup) {
    group.replaceConstraints([])
}
orta commented 7 years ago

👍 cool, thanks

orta commented 7 years ago

shipped in 1.1.0