From 5da8a3a90db5e5ccaaf68de2ac312108af911821 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 15 May 2019 17:11:18 -0700 Subject: [PATCH] Remove variadic form of hb_min/hb_max Unused, and why here and not in other functions... --- src/hb-algs.hh | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/hb-algs.hh b/src/hb-algs.hh index 4120251a3..f0f13302a 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -259,34 +259,16 @@ HB_FUNCOBJ (hb_second); * comparing integers of different signedness. */ struct { - private: template auto - impl (T&& a, T2&& b) const HB_AUTO_RETURN + operator () (T&& a, T2&& b) const HB_AUTO_RETURN (hb_forward (a) <= hb_forward (b) ? hb_forward (a) : hb_forward (b)) - - public: - template auto - operator () (T&& a) const HB_AUTO_RETURN (hb_forward (a)) - - template auto - operator () (T&& a, Ts&& ...ds) const HB_AUTO_RETURN - (impl (hb_forward (a), (*this) (hb_forward (ds)...))) } HB_FUNCOBJ (hb_min); struct { - private: template auto - impl (T&& a, T2&& b) const HB_AUTO_RETURN + operator () (T&& a, T2&& b) const HB_AUTO_RETURN (hb_forward (a) >= hb_forward (b) ? hb_forward (a) : hb_forward (b)) - - public: - template auto - operator () (T&& a) const HB_AUTO_RETURN (hb_forward (a)) - - template auto - operator () (T&& a, Ts&& ...ds) const HB_AUTO_RETURN - (impl (hb_forward (a), (*this) (hb_forward (ds)...))) } HB_FUNCOBJ (hb_max);