diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-04-01 13:02:50 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-04-01 13:02:50 -0700 |
commit | 15f75aa8e6578cd2a27cadfc11e31b58e2fc6683 (patch) | |
tree | ce954f375246067725a5594dc41693f5be76d892 /struct.c | |
parent | 11fa7c2d7c5c668ea921f1dbc6b70e97e3535afe (diff) |
Remove unused function findIndex
Found by cppcheck
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -390,21 +390,6 @@ makeCmap(FontPtr font) } int -findIndex(CmapPtr cmap_head, int code) -{ - CmapPtr cmap; - cmap = cmap_head; - while(cmap) { - if(cmap->endCode > code) - return -1; - if(cmap->startCode <= code) - return cmap->index + code - cmap->startCode; - cmap = cmap->next; - } - return -1; -} - -int findCode(CmapPtr cmap_head, int index) { if(index < 0 || index > cmap_head->maxindex) |