From 25c0a792e3c2642e3796e0428fb315da9dc2618e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 10 Dec 2020 14:29:47 -0700 Subject: [PATCH] Remove unused+wrong UnsizedArrayOf<> operators Said compiler is wrong to err since they are unused. But yeah, they didn't make sense and were copy/paste leftover. Fixes https://github.com/harfbuzz/harfbuzz/issues/2763 --- src/hb-open-type.hh | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 50558cf8d..99634b76f 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -433,8 +433,6 @@ struct UnsizedArrayOf { return hb_array (arrayZ, len); } hb_array_t as_array (unsigned int len) const { return hb_array (arrayZ, len); } - operator hb_array_t< Type> () { return as_array (); } - operator hb_array_t () const { return as_array (); } template Type &lsearch (unsigned int len, const T &x, Type ¬_found = Crap (Type))