[ADT] Remove Optional<T>::create
authorKazu Hirata <kazu@google.com>
Wed, 14 Dec 2022 18:34:34 +0000 (10:34 -0800)
committerKazu Hirata <kazu@google.com>
Wed, 14 Dec 2022 18:34:34 +0000 (10:34 -0800)
The last use of Optional<T>::create was removed on December 10, 2022
in commit 1cb7fba3e57d6c31f05c7a2bda1634da49dd1d18.

Differential Revision: https://reviews.llvm.org/D139775

llvm/include/llvm/ADT/Optional.h

index 5574382..6702738 100644 (file)
@@ -258,10 +258,6 @@ public:
     Storage.emplace(std::forward<ArgTypes>(Args)...);
   }
 
-  static constexpr Optional create(const T *y) {
-    return y ? Optional(*y) : Optional();
-  }
-
   Optional &operator=(const T &y) {
     Storage = y;
     return *this;