     func contains(_ key: String) -> Bool {
         object(forKey: key) != nil
     }
-
-    /// Removes all key-value pairs in the domains in the search list.
-    func removeAll() {
-        dictionaryRepresentation().keys.forEach(removeObject)
-    }
 }
-
-#if canImport(Combine)
-import Combine
 
 public extension UserDefaults {
     var publisher: AnyPublisher<Void, Never> {

            .eraseToAnyPublisher()
    }
}
#endif

//  Copyright © 2020 Zamzam Inc. All rights reserved.
//

import Combine
import Foundation.NSNotification
import Foundation.NSUserDefaults

