From ea84598613f3caebdeca13b0b49ee6b017e99021 Mon Sep 17 00:00:00 2001 From: Ray Chason Date: Sat, 10 Dec 2022 13:13:28 -0500 Subject: [PATCH] Remove some debug code --- src/utf8map.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/utf8map.c b/src/utf8map.c index 66158dead..1f1745c0a 100644 --- a/src/utf8map.c +++ b/src/utf8map.c @@ -393,10 +393,8 @@ add_glyph_to_cache(int glyphnum, const char *id) size_t hash2 = (size_t) (((hash >> glyphid_cache_lsize) & (glyphid_cache_size - 1)) | 1); size_t i = hash1; - unsigned count = 0; do { - ++count; if (glyphid_cache[i].id == NULL) { /* Empty bucket found */ glyphid_cache[i].id = dupstr(id); @@ -418,10 +416,8 @@ find_glyph_in_cache(const char *id) size_t hash2 = (size_t) (((hash >> glyphid_cache_lsize) & (glyphid_cache_size - 1)) | 1); size_t i = hash1; - unsigned count = 0; do { - ++count; if (glyphid_cache[i].id == NULL) { /* Empty bucket found */ return -1;