diff options
Diffstat (limited to 'src/mongo/util/future.h')
| -rw-r--r-- | src/mongo/util/future.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mongo/util/future.h b/src/mongo/util/future.h index cfdb724a101..5d36bb39861 100644 --- a/src/mongo/util/future.h +++ b/src/mongo/util/future.h @@ -181,16 +181,6 @@ public: } /** - * Returns whether this SemiFuture can or will be able to access a deferred status or value. - * - * NOTE: valid() will still return true if the value inside of the future is moved from. This - * should not be used as a way to determine usage validity until SERVER-66036. - */ - bool valid() const { - return _impl.valid(); - } - - /** * Returns when the Semifuture isReady(). * * Throws if the interruptible passed is interrupted (explicitly or via deadline). @@ -326,7 +316,6 @@ public: using SemiFuture<T>::SemiFuture; // Constructors. using SemiFuture<T>::share; using SemiFuture<T>::isReady; - using SemiFuture<T>::valid; using SemiFuture<T>::wait; using SemiFuture<T>::waitNoThrow; using SemiFuture<T>::get; @@ -605,7 +594,6 @@ public: using value_type = T; using SemiFuture<T>::share; using SemiFuture<T>::isReady; - using SemiFuture<T>::valid; using SemiFuture<T>::wait; using SemiFuture<T>::waitNoThrow; using SemiFuture<T>::get; @@ -982,10 +970,6 @@ public: return _shared.isReady(); } - bool valid() const { - return _shared.valid(); - } - void wait(Interruptible* interruptible = Interruptible::notInterruptible()) const { _shared.wait(interruptible); } |
