[ADT] Remove deperecated methods in OptionalStorage
authorKazu Hirata <kazu@google.com>
Sat, 19 Nov 2022 21:21:27 +0000 (13:21 -0800)
committerKazu Hirata <kazu@google.com>
Sat, 19 Nov 2022 21:21:27 +0000 (13:21 -0800)
Note that I deprecated these methods on August 7, 2022 in commit
commit b5f8d42efe3e246d582d4a1a328fac915e4ce8dc.

llvm/include/llvm/ADT/Optional.h

index 36ad621..fc4737b 100644 (file)
@@ -92,36 +92,19 @@ public:
   }
 
   constexpr bool has_value() const noexcept { return hasVal; }
-  LLVM_DEPRECATED("Use has_value instead.", "has_value")
-  constexpr bool hasValue() const noexcept {
-    return hasVal;
-  }
 
   T &value() &noexcept {
     assert(hasVal);
     return val;
   }
-  LLVM_DEPRECATED("Use value instead.", "value") T &getValue() &noexcept {
-    assert(hasVal);
-    return val;
-  }
   constexpr T const &value() const &noexcept {
     assert(hasVal);
     return val;
   }
-  LLVM_DEPRECATED("Use value instead.", "value")
-  constexpr T const &getValue() const &noexcept {
-    assert(hasVal);
-    return val;
-  }
   T &&value() &&noexcept {
     assert(hasVal);
     return std::move(val);
   }
-  LLVM_DEPRECATED("Use value instead.", "value") T &&getValue() &&noexcept {
-    assert(hasVal);
-    return std::move(val);
-  }
 
   template <class... Args> void emplace(Args &&...args) {
     reset();