From 3245bcdd17dcf17388d13762ee175a47795b1692 Mon Sep 17 00:00:00 2001 From: Shao-Ce SUN Date: Thu, 23 Mar 2023 18:23:54 +0800 Subject: [PATCH] [flang][nfc] Remove unused codes in idioms.h Since D137859, these have not been used. Reviewed By: Renaud-K Differential Revision: https://reviews.llvm.org/D146709 --- flang/include/flang/Common/idioms.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/flang/include/flang/Common/idioms.h b/flang/include/flang/Common/idioms.h index 7695ebb..f6c9cbb 100644 --- a/flang/include/flang/Common/idioms.h +++ b/flang/include/flang/Common/idioms.h @@ -112,20 +112,6 @@ template visitors(LAMBDAS... x) -> visitors; } \ template constexpr bool T{class_trait_ns_##T::trait_value()}; -// Define enum class NAME with the given enumerators, -// - a static function EnumToString() that maps enumerators to std::string, -// - a constant NAME_enumSize that captures the number of items in the enum, -// - a struct NAME_struct that implements a Meyers singleton to hold the mapping -// from index to names - -void BuildIndexToString( - const char *commaSeparated, std::string enumNames[], int enumSize); - -template struct ListItemCount { - constexpr ListItemCount(std::initializer_list list) : value{list.size()} {} - const std::size_t value; -}; - // Check that a pointer is non-null and dereference it #define DEREF(p) Fortran::common::Deref(p, __FILE__, __LINE__) -- 2.7.4