Skip to content

Commit 55f72d8

Browse files
authored
[Storage] Remove unused, long-deprecated 'StorageMetadata.storageReference' API` (#15057)
1 parent 5487ba1 commit 55f72d8

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

FirebaseStorage/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
- [removed] **Breaking change**: Removed the following unused API,
3+
`StorageMetadata.storageReference`.
4+
15
# 11.13.0
26
- [fixed] `putFile` now works in App Clips. Similarly to app extensions, background session
37
configurations are not used in App Clips (#14794).

FirebaseStorage/Sources/StorageMetadata.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,6 @@ import Foundation
102102
*/
103103
@objc public let updated: Date?
104104

105-
/**
106-
* Never used API
107-
*/
108-
@available(*, deprecated) @objc public let storageReference: StorageReference? = nil
109-
110105
/**
111106
* Creates a Dictionary from the contents of the metadata.
112107
* @return A Dictionary that represents the contents of the metadata.

FirebaseStorage/Tests/ObjCIntegration/ObjCAPITests.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,6 @@ - (void)FIRStorageMetadataApis {
169169
[metadata size];
170170
[metadata timeCreated];
171171
[metadata updated];
172-
#pragma clang diagnostic push
173-
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
174-
[metadata storageReference];
175-
#pragma clang diagnostic pop
176172
FIRStorageMetadata __unused *ref2 = [metadata initWithDictionary:@{}];
177173
NSDictionary<NSString *, id> __unused *dict = [metadata dictionaryRepresentation];
178174
[metadata isFile];

0 commit comments

Comments
 (0)