Skip to content

Commit 60b569f

Browse files
committed
fix: remove unused class
1 parent 3d8f6d1 commit 60b569f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/firebase_storage/firebase_storage/ios/firebase_storage/Sources/firebase_storage/FLTFirebaseStoragePlugin.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import Foundation
1717
import FlutterMacOS
1818
#endif
1919

20-
extension FlutterError: Error {}
21-
2220
public final class FLTFirebaseStoragePlugin: NSObject, FlutterPlugin, FirebaseStorageHostApi {
2321
private var channel: FlutterMethodChannel?
2422
private var messenger: FlutterBinaryMessenger?
@@ -35,12 +33,12 @@ public final class FLTFirebaseStoragePlugin: NSObject, FlutterPlugin, FirebaseSt
3533
@objc
3634
public static func register(with registrar: FlutterPluginRegistrar) {
3735
let channelName = "plugins.flutter.io/firebase_storage"
38-
let channel = FlutterMethodChannel(name: channelName, binaryMessenger: registrar.messenger())
36+
let channel = FlutterMethodChannel(name: channelName, binaryMessenger: registrar.messenger)
3937
let instance = FLTFirebaseStoragePlugin()
4038
instance.channel = channel
41-
instance.messenger = registrar.messenger()
39+
instance.messenger = registrar.messenger
4240
registrar.addMethodCallDelegate(instance, channel: channel)
43-
FirebaseStorageHostApiSetup.setUp(binaryMessenger: registrar.messenger(), api: instance)
41+
FirebaseStorageHostApiSetup.setUp(binaryMessenger: registrar.messenger, api: instance)
4442
}
4543

4644
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
@@ -92,7 +90,6 @@ public final class FLTFirebaseStoragePlugin: NSObject, FlutterPlugin, FirebaseSt
9290

9391
func useStorageEmulator(app: PigeonStorageFirebaseApp, host: String, port: Int64,
9492
completion: @escaping (Result<Void, Error>) -> Void) {
95-
let key = app.bucket
9693
let s = storage(app: app)
9794
s.useEmulator(withHost: host, port: Int(port))
9895
completion(.success(()))

0 commit comments

Comments
 (0)