GC old way of selecting functions by cell type
@@ -47,15 +47,6 @@ struct TypedCells {
TypedCells & operator= (const TypedCells &other) = default;
};
-template <typename TGT, typename... Args>
-decltype(auto) dispatch_0(CellType ct, Args &&...args) {
- switch (ct) {
- case CellType::DOUBLE: return TGT::template call<double>(std::forward<Args>(args)...);
- case CellType::FLOAT: return TGT::template call<float>(std::forward<Args>(args)...);
- }
- abort();
-}
-
template <typename TGT, typename... Args>
decltype(auto) dispatch_1(const TypedCells &a, Args &&...args) {
switch (a.type) {
@@ -74,22 +65,4 @@ decltype(auto) dispatch_2(A1 &&a, const TypedCells &b, Args &&...args) {
abort();
}
-template <typename T, typename... Args>
-decltype(auto) select_1(CellType a_type) {
- switch(a_type) {
- case CellType::DOUBLE: return T::template get_fun<double, Args...>();
- case CellType::FLOAT: return T::template get_fun<float, Args...>();
- }
- abort();
-}
-
-template <typename T>
-decltype(auto) select_2(CellType a_type, CellType b_type) {
- switch(b_type) {
- case CellType::DOUBLE: return select_1<T, double>(a_type);
- case CellType::FLOAT: return select_1<T, float>(a_type);
- }
- abort();
-}
-
} // namespace
