Remove hb_success_t

Was not rolled-out yet.  So just expand.
This commit is contained in:
Behdad Esfahbod 2021-03-29 17:34:23 -06:00
parent 7a2eda7817
commit 2397689387
2 changed files with 2 additions and 3 deletions

View File

@ -632,7 +632,7 @@ struct ArrayOf
void qsort (unsigned int start = 0, unsigned int end = (unsigned int) -1) void qsort (unsigned int start = 0, unsigned int end = (unsigned int) -1)
{ as_array ().qsort (start, end); } { as_array ().qsort (start, end); }
hb_success_t serialize (hb_serialize_context_t *c, unsigned items_len) HB_NODISCARD bool serialize (hb_serialize_context_t *c, unsigned items_len)
{ {
TRACE_SERIALIZE (this); TRACE_SERIALIZE (this);
if (unlikely (!c->extend_min (*this))) return_trace (false); if (unlikely (!c->extend_min (*this))) return_trace (false);
@ -642,7 +642,7 @@ struct ArrayOf
} }
template <typename Iterator, template <typename Iterator,
hb_requires (hb_is_source_of (Iterator, Type))> hb_requires (hb_is_source_of (Iterator, Type))>
hb_success_t serialize (hb_serialize_context_t *c, Iterator items) HB_NODISCARD bool serialize (hb_serialize_context_t *c, Iterator items)
{ {
TRACE_SERIALIZE (this); TRACE_SERIALIZE (this);
unsigned count = items.len (); unsigned count = items.len ();

View File

@ -338,7 +338,6 @@ extern "C" void hb_free_impl(void *ptr);
#else #else
# define HB_NODISCARD # define HB_NODISCARD
#endif #endif
#define hb_success_t HB_NODISCARD bool
/* https://github.com/harfbuzz/harfbuzz/issues/1852 */ /* https://github.com/harfbuzz/harfbuzz/issues/1852 */
#if defined(__clang__) && !(defined(_AIX) && (defined(__IBMCPP__) || defined(__ibmxl__))) #if defined(__clang__) && !(defined(_AIX) && (defined(__IBMCPP__) || defined(__ibmxl__)))