mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
Remove unused MakeOptional
The only use was to work around a compiler warning in an ancient compiler, which we no longer support.
This commit is contained in:
@@ -13,13 +13,6 @@
|
||||
template <typename T>
|
||||
using Optional = boost::optional<T>;
|
||||
|
||||
//! Substitute for C++17 std::make_optional
|
||||
template <typename T>
|
||||
Optional<T> MakeOptional(bool condition, T&& value)
|
||||
{
|
||||
return boost::make_optional(condition, std::forward<T>(value));
|
||||
}
|
||||
|
||||
//! Substitute for C++17 std::nullopt
|
||||
static auto& nullopt = boost::none;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user