[name] Remove unused cmp function

This commit is contained in:
Behdad Esfahbod 2018-10-23 21:12:58 -07:00
parent 4668a05006
commit 6db6bbe64b

View File

@ -47,22 +47,6 @@ namespace OT {
struct NameRecord
{
static int cmp (const void *pa, const void *pb)
{
const NameRecord *a = (const NameRecord *) pa;
const NameRecord *b = (const NameRecord *) pb;
int ret;
ret = b->platformID.cmp (a->platformID);
if (ret) return ret;
ret = b->encodingID.cmp (a->encodingID);
if (ret) return ret;
ret = b->languageID.cmp (a->languageID);
if (ret) return ret;
ret = b->nameID.cmp (a->nameID);
if (ret) return ret;
return 0;
}
inline uint16_t score (void) const
{
/* Same order as in cmap::find_best_subtable(). */