From 37e346e6ea949dd87b2a72248c4de55d309ac74f Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sat, 27 Apr 2024 08:02:18 -0400 Subject: [PATCH] xo-unit: utest: tidy nu_product / nu_ratio calls --- utest/unit.test.cpp | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/utest/unit.test.cpp b/utest/unit.test.cpp index c01f7c41..6221b0b5 100644 --- a/utest/unit.test.cpp +++ b/utest/unit.test.cpp @@ -47,18 +47,6 @@ namespace xo { using xo::qty::detail::nu_ratio; using xo::qty::unit_qty; - template - int unused() - { - return 1; - } - - template - constexpr bool unused_same(typename std::enable_if_t::value, bool> result = true) - { - return result; - } - TEST_CASE("basis_unit", "[basis_unit]") { constexpr bool c_debug_flag = true; @@ -741,7 +729,7 @@ namespace xo { static_assert(w.n_bpu() == 1); - constexpr auto prod_rr = nu_product(v, w); + constexpr auto prod_rr = nu_product(v, w); log && log(xtag("prod_rr.bpu_array", prod_rr.natural_unit_)); log && log(xtag("prod_rr.outer_scale_exact", prod_rr.outer_scale_exact_)); @@ -890,7 +878,7 @@ namespace xo { log && log(xtag("w.abbrev", w.abbrev())); - constexpr auto rr = nu_ratio(v, w); + constexpr auto rr = nu_ratio(v, w); log && log(xtag("rr", rr)); @@ -908,7 +896,7 @@ namespace xo { log && log(xtag("w.abbrev", w.abbrev())); - constexpr auto rr = nu_ratio(v, w); + constexpr auto rr = nu_ratio(v, w); log && log(xtag("rr", rr));