From 9d8ee5cc8f0d1dc1421e2c52368628651de6b5f9 Mon Sep 17 00:00:00 2001 From: Jason Cobb Date: Thu, 14 May 2020 10:42:19 -0400 Subject: [PATCH] Remove unused assertInitialized from LazyInit --- libsolutil/LazyInit.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libsolutil/LazyInit.h b/libsolutil/LazyInit.h index bc8c512d7..aec126a65 100644 --- a/libsolutil/LazyInit.h +++ b/libsolutil/LazyInit.h @@ -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