remove superfluous additions
@@ -26,28 +26,6 @@ template <> inline CellType get_cell_type<double>() { return CellType::DOUBLE; }
template <> inline CellType get_cell_type<float>() { return CellType::FLOAT; }
struct CellTypeUtils {
- template <typename CT> static constexpr bool check(CellType type);
- template <typename CT> static constexpr CellType get_type();
-
- static constexpr uint32_t DOUBLE_ID = 0;
- static constexpr uint32_t FLOAT_ID = 1;
-
- static constexpr uint32_t id_of(CellType cell_type) {
- switch (cell_type) {
- case CellType::DOUBLE: return DOUBLE_ID;
- case CellType::FLOAT: return FLOAT_ID;
- }
- bad_argument((uint32_t)cell_type);
- }
-
- static constexpr CellType type_of(uint32_t id) {
- switch (id) {
- case DOUBLE_ID: return CellType::DOUBLE;
- case FLOAT_ID: return CellType::FLOAT;
- }
- bad_argument(id);
- }
-
static void bad_argument [[ noreturn ]] (uint32_t id);
static constexpr uint32_t alignment(CellType cell_type) {
@@ -67,18 +45,6 @@ struct CellTypeUtils {
}
};
-template <> constexpr bool
-CellTypeUtils::check<double>(CellType type) { return (type == CellType::DOUBLE); }
-
-template <> constexpr bool
-CellTypeUtils::check<float>(CellType type) { return (type == CellType::FLOAT); }
-
-template <> constexpr CellType
-CellTypeUtils::get_type<double>() { return CellType::DOUBLE; }
-
-template <> constexpr CellType
-CellTypeUtils::get_type<float>() { return CellType::FLOAT; }
-
struct TypifyCellType {
template <typename T> using Result = TypifyResultType<T>;
template <typename F> static decltype(auto) resolve(CellType value, F &&f) {
