From a0b97a42472497bc07e0a8e00ef64913283e7691 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 14 Dec 2022 10:34:34 -0800 Subject: [PATCH] [ADT] Remove Optional::create The last use of Optional::create was removed on December 10, 2022 in commit 1cb7fba3e57d6c31f05c7a2bda1634da49dd1d18. Differential Revision: https://reviews.llvm.org/D139775 --- llvm/include/llvm/ADT/Optional.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/llvm/include/llvm/ADT/Optional.h b/llvm/include/llvm/ADT/Optional.h index 5574382..6702738 100644 --- a/llvm/include/llvm/ADT/Optional.h +++ b/llvm/include/llvm/ADT/Optional.h @@ -258,10 +258,6 @@ public: Storage.emplace(std::forward(Args)...); } - static constexpr Optional create(const T *y) { - return y ? Optional(*y) : Optional(); - } - Optional &operator=(const T &y) { Storage = y; return *this; -- 2.7.4