Skip to content

Commit 3888913

Browse files
[ADT] Remove deperecated methods in OptionalStorage
Note that I deprecated these methods on August 7, 2022 in commit commit b5f8d42.
1 parent 752e651 commit 3888913

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

llvm/include/llvm/ADT/Optional.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -190,36 +190,19 @@ template <typename T> class OptionalStorage<T, true> {
190190
}
191191

192192
constexpr bool has_value() const noexcept { return hasVal; }
193-
LLVM_DEPRECATED("Use has_value instead.", "has_value")
194-
constexpr bool hasValue() const noexcept {
195-
return hasVal;
196-
}
197193

198194
T &value() &noexcept {
199195
assert(hasVal);
200196
return val;
201197
}
202-
LLVM_DEPRECATED("Use value instead.", "value") T &getValue() &noexcept {
203-
assert(hasVal);
204-
return val;
205-
}
206198
constexpr T const &value() const &noexcept {
207199
assert(hasVal);
208200
return val;
209201
}
210-
LLVM_DEPRECATED("Use value instead.", "value")
211-
constexpr T const &getValue() const &noexcept {
212-
assert(hasVal);
213-
return val;
214-
}
215202
T &&value() &&noexcept {
216203
assert(hasVal);
217204
return std::move(val);
218205
}
219-
LLVM_DEPRECATED("Use value instead.", "value") T &&getValue() &&noexcept {
220-
assert(hasVal);
221-
return std::move(val);
222-
}
223206

224207
template <class... Args> void emplace(Args &&...args) {
225208
reset();

0 commit comments

Comments
 (0)