Remove unused assertInitialized from LazyInit

This commit is contained in:
Jason Cobb 2020-05-14 10:42:19 -04:00
parent a392d5d63a
commit 9d8ee5cc8f
No known key found for this signature in database
GPG Key ID: 2A3F6A6DCA1E8DED

View File

@ -77,15 +77,6 @@ public:
}
private:
constexpr void assertInitialized() const
{
assertThrow(
m_value.has_value(),
BadLazyInitAccess,
"Attempt to access an uninitialized LazyInit"
);
}
/// Although not quite logically const, this is marked const for pragmatic reasons. It doesn't change the platonic
/// value of the object (which is something that is initialized to some computed value on first use).
template<typename F>