From 0058d2ff67850cd7be5efbbed3f3f66974cee101 Mon Sep 17 00:00:00 2001 From: Mo Ramezanpoor Date: Tue, 9 Aug 2016 10:32:35 +0100 Subject: [PATCH] Deprecates `NopDisposable.instance` in favour of `Disposables.empty()`. --- RxSwift/Disposables/NopDisposable.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RxSwift/Disposables/NopDisposable.swift b/RxSwift/Disposables/NopDisposable.swift index fe8a0c73..5004311d 100644 --- a/RxSwift/Disposables/NopDisposable.swift +++ b/RxSwift/Disposables/NopDisposable.swift @@ -18,6 +18,7 @@ public struct NopDisposable : Disposable { /** Singleton instance of `NopDisposable`. */ + @available(*, deprecated, renamed: "Disposables.empty()") public static let instance: Disposable = NopDisposable() init() { @@ -29,4 +30,4 @@ public struct NopDisposable : Disposable { */ public func dispose() { } -} \ No newline at end of file +}