[hdmx] Remove unused unsafe function
This commit is contained in:
parent
f74abc307d
commit
305012609b
|
@ -76,7 +76,7 @@ struct DeviceRecord
|
||||||
HBUINT8 maxWidth; /* Maximum width. */
|
HBUINT8 maxWidth; /* Maximum width. */
|
||||||
UnsizedArrayOf<HBUINT8> widthsZ; /* Array of widths (numGlyphs is from the 'maxp' table). */
|
UnsizedArrayOf<HBUINT8> widthsZ; /* Array of widths (numGlyphs is from the 'maxp' table). */
|
||||||
public:
|
public:
|
||||||
DEFINE_SIZE_ARRAY (2, widthsZ);
|
DEFINE_SIZE_UNBOUNDED (2);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -87,14 +87,6 @@ struct hdmx
|
||||||
unsigned int get_size () const
|
unsigned int get_size () const
|
||||||
{ return min_size + numRecords * sizeDeviceRecord; }
|
{ return min_size + numRecords * sizeDeviceRecord; }
|
||||||
|
|
||||||
const DeviceRecord& operator [] (unsigned int i) const
|
|
||||||
{
|
|
||||||
/* XXX Null(DeviceRecord) is NOT safe as it's num-glyphs lengthed.
|
|
||||||
* https://github.com/harfbuzz/harfbuzz/issues/1300 */
|
|
||||||
if (unlikely (i >= numRecords)) return Null (DeviceRecord);
|
|
||||||
return StructAtOffset<DeviceRecord> (&this->firstDeviceRecord, i * sizeDeviceRecord);
|
|
||||||
}
|
|
||||||
|
|
||||||
template<typename Iterator,
|
template<typename Iterator,
|
||||||
hb_requires (hb_is_iterator (Iterator))>
|
hb_requires (hb_is_iterator (Iterator))>
|
||||||
bool serialize (hb_serialize_context_t *c, unsigned version, Iterator it)
|
bool serialize (hb_serialize_context_t *c, unsigned version, Iterator it)
|
||||||
|
|
Loading…
Reference in New Issue