浏览代码

Cleaning up unused code

Andrea Bizzotto 9 年之前
父节点
当前提交
e8d38835ed
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. 0 1
      SwiftyStoreKit/InAppProductPurchaseRequest.swift
  2. 1 2
      SwiftyStoreKit/SwiftyStoreKit.swift

+ 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