From 18668ba7aea421ac76e5f9e6ddd4bac3e2b3bfc9 Mon Sep 17 00:00:00 2001 From: Nick Cooke Date: Mon, 30 Jun 2025 15:32:30 -0400 Subject: [PATCH] [Storage] Remove unused, long-deprecated 'StorageMetadata.storageReference' API --- FirebaseStorage/CHANGELOG.md | 4 ++++ FirebaseStorage/Sources/StorageMetadata.swift | 5 ----- FirebaseStorage/Tests/ObjCIntegration/ObjCAPITests.m | 4 ---- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/FirebaseStorage/CHANGELOG.md b/FirebaseStorage/CHANGELOG.md index 9e940e34310..1f051c466ba 100644 --- a/FirebaseStorage/CHANGELOG.md +++ b/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). diff --git a/FirebaseStorage/Sources/StorageMetadata.swift b/FirebaseStorage/Sources/StorageMetadata.swift index d0e9d43df4b..d0a53e69454 100644 --- a/FirebaseStorage/Sources/StorageMetadata.swift +++ b/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. diff --git a/FirebaseStorage/Tests/ObjCIntegration/ObjCAPITests.m b/FirebaseStorage/Tests/ObjCIntegration/ObjCAPITests.m index ccf5aae81a5..bc6f030434d 100644 --- a/FirebaseStorage/Tests/ObjCIntegration/ObjCAPITests.m +++ b/FirebaseStorage/Tests/ObjCIntegration/ObjCAPITests.m @@ -169,10 +169,6 @@ - (void)FIRStorageMetadataApis { [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 __unused *dict = [metadata dictionaryRepresentation]; [metadata isFile];