mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove unused assertInitialized from LazyInit
This commit is contained in:
parent
a392d5d63a
commit
9d8ee5cc8f
@ -77,15 +77,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
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
|
/// 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).
|
/// value of the object (which is something that is initialized to some computed value on first use).
|
||||||
template<typename F>
|
template<typename F>
|
||||||
|
Loading…
Reference in New Issue
Block a user