diff --git a/support/internal/BUILD b/support/internal/BUILD index f776dc0e1..d19f3497c 100644 --- a/support/internal/BUILD +++ b/support/internal/BUILD @@ -12,7 +12,6 @@ cc_library( "check_no_mutable_aliasing.h", "cxx20_backports.h", "fmt.h", - "lazy_init.h", "memswap.h", "offsetof.h", "sizeof.h", diff --git a/support/internal/lazy_init.h b/support/internal/lazy_init.h deleted file mode 100644 index fbd926558..000000000 --- a/support/internal/lazy_init.h +++ /dev/null @@ -1,20 +0,0 @@ -// Part of the Crubit project, under the Apache License v2.0 with LLVM -// Exceptions. See /LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -#ifndef THIRD_PARTY_CRUBIT_SUPPORT_INTERNAL_LAZY_INIT_H_ -#define THIRD_PARTY_CRUBIT_SUPPORT_INTERNAL_LAZY_INIT_H_ -#include - -namespace crubit { - -template -union LazyInit { - constexpr LazyInit() {} - ~LazyInit() { std::destroy_at(&this->val); } - T val; -}; - -} // namespace crubit - -#endif // THIRD_PARTY_CRUBIT_SUPPORT_INTERNAL_LAZY_INIT_H_