aboutsummaryrefslogtreecommitdiffstats
path: root/eval
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-11-24 21:00:48 +0000
committerArne Juul <arnej@verizonmedia.com>2020-11-24 21:00:48 +0000
commit08cae2f9b4f1ccce8c9534936826a151d63a320d (patch)
treeb36dac12729009fc1a32e9c848039aae06172ca3 /eval
parentd73cb9413b0b39943395a717ec20ce6cd89fa47f (diff)
remove superfluous additions
Diffstat (limited to 'eval')
-rw-r--r--eval/src/vespa/eval/eval/cell_type.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/eval/src/vespa/eval/eval/cell_type.h b/eval/src/vespa/eval/eval/cell_type.h
index b2b71930ff2..49114d04bfe 100644
--- a/eval/src/vespa/eval/eval/cell_type.h
+++ b/eval/src/vespa/eval/eval/cell_type.h
@@ -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) {