From 30d0d4f7eb87c53bf069ef1ebd10125534939a75 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Wed, 8 May 2024 16:57:56 -0400 Subject: [PATCH] xo-unit: refactor: prune never-invoked code --- include/xo/unit/basis_unit.hpp | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/include/xo/unit/basis_unit.hpp b/include/xo/unit/basis_unit.hpp index 0bbbfc77..22aeb28f 100644 --- a/include/xo/unit/basis_unit.hpp +++ b/include/xo/unit/basis_unit.hpp @@ -177,33 +177,6 @@ namespace xo { ///@} } /*namespace bu*/ } /*namespace detail*/ - - namespace units { - /** for runtime work, would like to be able to promptly find special abbreviation - * keyed by (native_dim, scalefactor). - * - * Also want to support compile-time-only unit computation. - * Since constexpr unordered containers aren't obviously feasible (as of c++23). - * - * Solution adopted here is to support introduction of scaled native units - * only at compile time, at least for now - **/ - - // ----- bu_fallback_abbrev ----- - - /* Require: InnerScale is ratio type; InnerScale >= 1 */ - template - struct scaled_native_unit2_abbrev; - - template - struct scaled_native_unit2_abbrev { - static constexpr const bu_abbrev_type value - = (bu_abbrev_type::from_flatstring - (native_unit2_v[static_cast(BasisDim)] - .abbrev_str())); - }; - - } } /*namespace qty*/ } /*namespace xo*/