[cff-common] Remove special-casing of count=0 in INDEX serialize
The generic code-path now can handle count=0.
diff --git a/src/hb-ot-cff-common.hh b/src/hb-ot-cff-common.hh
index 50ab945..7fc54d3 100644
--- a/src/hb-ot-cff-common.hh
+++ b/src/hb-ot-cff-common.hh
@@ -172,18 +172,9 @@
Iterator it)
{
TRACE_SERIALIZE (this);
- if (!it)
- {
- COUNT *dest = c->allocate_min<COUNT> ();
- if (unlikely (!dest)) return_trace (false);
- *dest = 0;
- }
- else
- {
- serialize_header(c, + it | hb_map ([] (const byte_str_t &_) { return _.length; }));
- for (const auto &_ : +it)
- _.copy (c);
- }
+ serialize_header(c, + it | hb_map ([] (const byte_str_t &_) { return _.length; }));
+ for (const auto &_ : +it)
+ _.copy (c);
return_trace (true);
}