From 96420a3874dbf62d546c42596593857e332ec837 Mon Sep 17 00:00:00 2001 From: Kamile Demir Date: Thu, 20 Apr 2023 21:49:53 -0400 Subject: [PATCH] [uforead.c] Remove bsearch code from findGLIFRecByName --- c/shared/source/uforead/uforead.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/c/shared/source/uforead/uforead.c b/c/shared/source/uforead/uforead.c index fca3e45c8..ff51f42a0 100644 --- a/c/shared/source/uforead/uforead.c +++ b/c/shared/source/uforead/uforead.c @@ -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;