Browse Source

Cleaning up unused code

Andrea Bizzotto 9 years ago
parent
commit
e8d38835ed

+ 0 - 1
SwiftyStoreKit/InAppProductPurchaseRequest.swift

@@ -153,7 +153,6 @@ class InAppProductPurchaseRequest: NSObject, SKPaymentTransactionObserver {
             self.callback(results: [])
             return
         }
-        //print("\(restored)")
     }
     
     func paymentQueue(queue: SKPaymentQueue, updatedDownloads downloads: [SKDownload]) {

+ 1 - 2
SwiftyStoreKit/SwiftyStoreKit.swift

@@ -68,8 +68,7 @@ public class SwiftyStoreKit {
     }
     public enum InternalErrorCode: Int {
         case RestoredPurchaseWhenPurchasing = 0
-        case NothingToRestoreWhenPurchasing = 1
-        case PurchasedWhenRestoringPurchase = 2
+        case PurchasedWhenRestoringPurchase = 1
     }
 
     // MARK: Singleton