Browse Source

Revert insets to inset

Robert Payne 10 years ago
parent
commit
7cb3a61c14
2 changed files with 2 additions and 9 deletions
  1. 0 1
      CHANGELOG.md
  2. 2 8
      Source/ConstraintBuilder.swift

+ 0 - 1
CHANGELOG.md

@@ -5,7 +5,6 @@ CHANGELOG
 
 * **BREAKING:** The constraint making chain now utilises protocols to tighten the API's to avoid user error. This may break some syntaxes.
 * **BREAKING:** Semantic `and` and `with` chain variables were removed
-* **BREAKING:** `insets` deprecated and renamed to `inset`
 * Ensure Swift 1.2 compatibility
 * Added a `Snap.Config.interfaceLayoutDirection` variable for richer Leading/Trailing support.
 * Fixed memory leaks that could occur on long lived views

+ 2 - 8
Source/ConstraintBuilder.swift

@@ -84,9 +84,6 @@ public protocol ConstraintBuilderOffsetable: ConstraintBuilderMultipliable {
     func offset(amount: CGSize) -> ConstraintBuilderMultipliable
     func offset(amount: EdgeInsets) -> ConstraintBuilderMultipliable
     
-    func inset(amount: EdgeInsets) -> ConstraintBuilderMultipliable
-    
-    @availability(*, deprecated=0.10.0, renamed="inset")
     func insets(amount: EdgeInsets) -> ConstraintBuilderMultipliable
 }
 
@@ -423,15 +420,12 @@ final internal class ConstraintBuilder: Constraint, ConstraintBuilderExtendable,
         return self
     }
     
-    // MARK: inset
+    // MARK: insets
     
-    func inset(amount: EdgeInsets) -> ConstraintBuilderMultipliable {
+    func insets(amount: EdgeInsets) -> ConstraintBuilderMultipliable {
         self.constant = EdgeInsets(top: amount.top, left: amount.left, bottom: -amount.bottom, right: -amount.right)
         return self
     }
-    func insets(amount: EdgeInsets) -> ConstraintBuilderMultipliable {
-        return self.inset(amount)
-    }
     
     // MARK: Constraint