Skip to content

Commit

Permalink
[uforead.c] Remove bsearch code from findGLIFRecByName
Browse files Browse the repository at this point in the history
  • Loading branch information
kaydeearts committed Apr 24, 2023
1 parent 666fe4e commit 96420a3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions c/shared/source/uforead/uforead.c
Original file line number Diff line number Diff line change
Expand Up @@ -1223,11 +1223,6 @@ int glifRecNameComparator(const void *a, const void *b) {

static GLIF_Rec* findGLIFRecByName(ufoCtx h, char *glyphName)
{
GLIF_Rec *glifKey = memNew(h, sizeof(GLIF_Rec*));
glifKey->glyphName = glyphName;

GLIF_Rec* glif = bsearch(glifKey, h->data.glifRecs.array, h->data.glifRecs.cnt, sizeof(GLIF_Rec), glifRecNameComparator);
memFree(h, glifKey);
int i = 0;
while (i < h->data.glifRecs.cnt) {
GLIF_Rec* glifRec;
Expand Down

0 comments on commit 96420a3

Please sign in to comment.