Skip to content

Commit 3245bcd

Browse files
author
Shao-Ce SUN
committed
[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
1 parent 377e131 commit 3245bcd

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

flang/include/flang/Common/idioms.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -112,20 +112,6 @@ template <typename... LAMBDAS> visitors(LAMBDAS... x) -> visitors<LAMBDAS...>;
112112
} \
113113
template <typename A> constexpr bool T{class_trait_ns_##T::trait_value<A>()};
114114

115-
// Define enum class NAME with the given enumerators,
116-
// - a static function EnumToString() that maps enumerators to std::string,
117-
// - a constant NAME_enumSize that captures the number of items in the enum,
118-
// - a struct NAME_struct that implements a Meyers singleton to hold the mapping
119-
// from index to names
120-
121-
void BuildIndexToString(
122-
const char *commaSeparated, std::string enumNames[], int enumSize);
123-
124-
template <typename A> struct ListItemCount {
125-
constexpr ListItemCount(std::initializer_list<A> list) : value{list.size()} {}
126-
const std::size_t value;
127-
};
128-
129115
// Check that a pointer is non-null and dereference it
130116
#define DEREF(p) Fortran::common::Deref(p, __FILE__, __LINE__)
131117

0 commit comments

Comments
 (0)