changeset 33342:a96fc06e1ea7

Remove unused version variable, replace it by comment explaining why the bitmap font version no longer is relevant.
author reimar
date Sat, 07 May 2011 20:46:32 +0000
parents 4898b17f68f9
children 847e0d6aa196
files sub/font_load.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sub/font_load.c	Sat May 07 20:43:19 2011 +0000
+++ b/sub/font_load.c	Sat May 07 20:46:32 2011 +0000
@@ -75,7 +75,6 @@
 int i,j;
 int chardb=0;
 int fontdb=-1;
-int version=0;
 int first=1;
 
 desc=malloc(sizeof(font_desc_t));if(!desc) goto fail_out;
@@ -233,7 +232,9 @@
           continue;
       }
       if(pdb==2 && strcmp(p[0],"descversion")==0){
-          version=atoi(p[1]);
+          // This version field was never used.
+          // Since bitmap fonts are now deprecated there is
+          // no point in handling it.
           continue;
       }
       if(pdb==2 && strcmp(p[0],"spacewidth")==0){