Skip to content

Commit

Permalink
[flang][nfc] Remove unused codes in idioms.h
Browse files Browse the repository at this point in the history
Since D137859, these have not been used.

Reviewed By: Renaud-K

Differential Revision: https://reviews.llvm.org/D146709
  • Loading branch information
Shao-Ce SUN committed Mar 26, 2023
1 parent 377e131 commit 3245bcd
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions flang/include/flang/Common/idioms.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,6 @@ template <typename... LAMBDAS> visitors(LAMBDAS... x) -> visitors<LAMBDAS...>;
} \
template <typename A> constexpr bool T{class_trait_ns_##T::trait_value<A>()};

// 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 <typename A> struct ListItemCount {
constexpr ListItemCount(std::initializer_list<A> 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__)

Expand Down

0 comments on commit 3245bcd

Please sign in to comment.