summaryrefslogtreecommitdiff
path: root/src/bdf
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2018-08-13 21:33:24 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2018-08-13 21:33:24 -0400
commitac2ea865f3e019321f77f5c6b286ba1ddc6f6159 (patch)
treeb7bf227b40a9f8ef5383932f37a21ab0fce9fe38 /src/bdf
parent757bdf1aef3d93a27968857ac5b4435a52fa24a0 (diff)
downloadfreetype2-ac2ea865f3e019321f77f5c6b286ba1ddc6f6159.tar.gz
[bdf] Remove unused overflow storage.
* src/bdf/bdf.h (bdf_glyphlist_t): Remove this type. (bdf_font_t): Remove `overflow' field. * src/bdf/bdflib.c (bdf_free_font): Remove `overflow' freeing.
Diffstat (limited to 'src/bdf')
-rw-r--r--src/bdf/bdf.h16
-rw-r--r--src/bdf/bdflib.c10
2 files changed, 0 insertions, 26 deletions
diff --git a/src/bdf/bdf.h b/src/bdf/bdf.h
index 45953ed57..f27d2a579 100644
--- a/src/bdf/bdf.h
+++ b/src/bdf/bdf.h
@@ -158,20 +158,6 @@ FT_BEGIN_HEADER
} bdf_glyph_t;
- typedef struct bdf_glyphlist_t_
- {
- unsigned short pad; /* Pad to 4-byte boundary. */
- unsigned short bpp; /* Bits per pixel. */
- long start; /* Beginning encoding value of glyphs. */
- long end; /* Ending encoding value of glyphs. */
- bdf_glyph_t* glyphs; /* Glyphs themselves. */
- unsigned long glyphs_size; /* Glyph structures allocated. */
- unsigned long glyphs_used; /* Glyph structures used. */
- bdf_bbx_t bbx; /* Overall bounding box of glyphs. */
-
- } bdf_glyphlist_t;
-
-
typedef struct bdf_font_t_
{
char* name; /* Name of the font. */
@@ -205,8 +191,6 @@ FT_BEGIN_HEADER
char* comments; /* Font comments. */
unsigned long comments_len; /* Length of comment string. */
- bdf_glyphlist_t overflow; /* Storage used for glyph insertion. */
-
void* internal; /* Internal data for the font. */
/* The size of the next two arrays must be in sync with the */
diff --git a/src/bdf/bdflib.c b/src/bdf/bdflib.c
index d659c139a..484739b5a 100644
--- a/src/bdf/bdflib.c
+++ b/src/bdf/bdflib.c
@@ -2409,16 +2409,6 @@
FT_FREE( font->glyphs );
FT_FREE( font->unencoded );
- /* Free up the overflow storage if it was used. */
- for ( i = 0, glyphs = font->overflow.glyphs;
- i < font->overflow.glyphs_used; i++, glyphs++ )
- {
- FT_FREE( glyphs->name );
- FT_FREE( glyphs->bitmap );
- }
-
- FT_FREE( font->overflow.glyphs );
-
/* bdf_cleanup */
ft_hash_str_free( &(font->proptbl), memory );