Przeglądaj źródła

[Storage] Remove unused, long-deprecated 'StorageMetadata.storageReference' API` (#15057)

Nick Cooke 9 miesięcy temu
rodzic
commit
55f72d8302

+ 4 - 0
FirebaseStorage/CHANGELOG.md

@@ -1,3 +1,7 @@
+# Unreleased
+- [removed] **Breaking change**: Removed the following unused API,
+  `StorageMetadata.storageReference`.
+
 # 11.13.0
 - [fixed] `putFile` now works in App Clips. Similarly to app extensions, background session
   configurations are not used in App Clips (#14794).

+ 0 - 5
FirebaseStorage/Sources/StorageMetadata.swift

@@ -102,11 +102,6 @@ import Foundation
    */
   @objc public let updated: Date?
 
-  /**
-   * Never used API
-   */
-  @available(*, deprecated) @objc public let storageReference: StorageReference? = nil
-
   /**
    * Creates a Dictionary from the contents of the metadata.
    * @return A Dictionary that represents the contents of the metadata.

+ 0 - 4
FirebaseStorage/Tests/ObjCIntegration/ObjCAPITests.m

@@ -169,10 +169,6 @@
   [metadata size];
   [metadata timeCreated];
   [metadata updated];
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wdeprecated-declarations"
-  [metadata storageReference];
-#pragma clang diagnostic pop
   FIRStorageMetadata __unused *ref2 = [metadata initWithDictionary:@{}];
   NSDictionary<NSString *, id> __unused *dict = [metadata dictionaryRepresentation];
   [metadata isFile];