Commit 7576badb authored by Soomin Lee's avatar Soomin Lee

VLCMediaLibraryManager: Observer: Remove unnecessary init

parent e38bf70f
......@@ -132,17 +132,13 @@ class VLCMediaLibraryManager: NSObject {
private extension VLCMediaLibraryManager {
struct Observer {
weak var observer: MediaLibraryObserver?
init(_ observer: MediaLibraryObserver) {
self.observer = observer
}
}
}
extension VLCMediaLibraryManager {
func addObserver(_ observer: MediaLibraryObserver) {
let identifier = ObjectIdentifier(observer)
observers[identifier] = Observer(observer)
observers[identifier] = Observer(observer: observer)
}
func removeObserver(_ observer: MediaLibraryObserver) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment