From e640ac436c765bb1ed2139784e6d56a2a63d848b Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sun, 28 Apr 2024 15:35:00 -0400 Subject: [PATCH] xo-unit: tidy: retire unused functions --- include/xo/unit/scaled_unit.hpp | 36 ++------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) diff --git a/include/xo/unit/scaled_unit.hpp b/include/xo/unit/scaled_unit.hpp index 7653c391..1ca523ea 100644 --- a/include/xo/unit/scaled_unit.hpp +++ b/include/xo/unit/scaled_unit.hpp @@ -29,6 +29,8 @@ namespace xo { 1.0 / outer_scale_sq_); } + public: /* need public members so that a scaled_unit instance can be a non-type template parameter (a structural type) */ + natural_unit natural_unit_; OuterScale outer_scale_factor_; double outer_scale_sq_; @@ -70,40 +72,6 @@ namespace xo { template using width2x_t = width2x::type; -#ifdef NOT_USING - template - constexpr - detail::bpu2_rescale_result - bpu2_product(const bpu & lhs_bpu, - const bpu & rhs_bpu) - { - assert(lhs_bpu.native_dim() == rhs_bpu.native_dim()); - - bpu prod_bpu = lhs_bpu; - auto rr = bpu_product_inplace(&prod_bpu, rhs_bpu); - - return bpu2_rescale_result(prod_bpu, - rr.outer_scale_exact_, - rr.outer_scale_sq_); - } -#endif - -#ifdef NOT_USING - template - constexpr - scaled_unit - su_bpu_product(const natural_unit & lhs_bpu_array, - const bpu & rhs_bpu) - { - natural_unit prod = lhs_bpu_array; - auto rr = nu_product_inplace(&prod, rhs_bpu); - - return scaled_unit(prod, - rr.outer_scale_exact_, - rr.outer_scale_sq_); - }; -#endif - template , typename OuterScale = ratio::ratio>