From 6db6bbe64bd63554919647c5b527e03aedbaee4e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 23 Oct 2018 21:12:58 -0700 Subject: [PATCH] [name] Remove unused cmp function --- src/hb-ot-name-table.hh | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/hb-ot-name-table.hh b/src/hb-ot-name-table.hh index 26906671..c1e89a99 100644 --- a/src/hb-ot-name-table.hh +++ b/src/hb-ot-name-table.hh @@ -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(). */ -- GitLab