chiark / gitweb /
Remove extraglyphs variable that's no longer needed
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 3 Nov 2024 00:16:17 +0000 (00:16 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Thu, 14 Nov 2024 22:27:18 +0000 (22:27 +0000)
bedstead.c

index 5df11b869c1cfff6506f807604e054ec28c475fe..b389c4163967c584dda1d83a67eb73bb6201378e 100644 (file)
@@ -2768,7 +2768,6 @@ main(int argc, char **argv)
 {
        bool gen_bdf = false;
        int i;
-       int extraglyphs = 0;
        char *endptr, *timestr;
 
        if (argc == 2 && strcmp(argv[1], "--complement") == 0) {
@@ -2849,9 +2848,6 @@ main(int argc, char **argv)
 
        /* Put glyphs into FontForge-compatible order. */
        qsort(glyphs, nglyphs, sizeof(glyphs[0]), &compare_glyphs_by_ffid);
-       for (i = 0; i < nglyphs; i++)
-               if (glyphs[i].unicode == -1)
-                       extraglyphs++;
        printf("<?xml version='1.0'?>\n");
        printf("<ttFont sfntVersion='OTTO'>\n");
 /* Convenient macros for TTX values. */
@@ -3078,7 +3074,6 @@ main(int argc, char **argv)
        /* printf("OtfFeatName: 'ss16' 1033 \"6-cell separated graphics\"\n"); */
        /* printf("Lookup: 257 0 0 \"palt: proportional metrics\" {\"palt\"} " */
        /*     "['palt' ('DFLT' <'dflt'> 'latn' <'dflt'>)]\n"); */
-       extraglyphs = 0;
        for (i = 0; i < nglyphs; i++)
                glyphs_by_name[i] = glyphs + i;
        qsort(glyphs_by_name, nglyphs, sizeof(glyphs_by_name[0]),