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
pull/2764/head
Behdad Esfahbod 4 years ago
parent 07e304b2a4
commit 25c0a792e3
  1. 2
      src/hb-open-type.hh

@ -433,8 +433,6 @@ struct UnsizedArrayOf
{ return hb_array (arrayZ, len); } { return hb_array (arrayZ, len); }
hb_array_t<const Type> as_array (unsigned int len) const hb_array_t<const Type> as_array (unsigned int len) const
{ return hb_array (arrayZ, len); } { return hb_array (arrayZ, len); }
operator hb_array_t< Type> () { return as_array (); }
operator hb_array_t<const Type> () const { return as_array (); }
template <typename T> template <typename T>
Type &lsearch (unsigned int len, const T &x, Type &not_found = Crap (Type)) Type &lsearch (unsigned int len, const T &x, Type &not_found = Crap (Type))

Loading…
Cancel
Save