]> granicus.if.org Git - libass/commitdiff
Remove unused function
authorGrigori Goronzy <greg@blackbox>
Tue, 21 Jun 2011 17:06:55 +0000 (19:06 +0200)
committerGrigori Goronzy <greg@blackbox>
Tue, 21 Jun 2011 17:06:55 +0000 (19:06 +0200)
libass/ass_bitmap.c
libass/ass_bitmap.h

index d8b4063a9d0fe1b1e27296917a08b670098bd1b8..949126a0892ab060915a1be31cf35bfd9ac6917d 100644 (file)
@@ -159,21 +159,6 @@ static Bitmap *copy_bitmap(const Bitmap *src)
     return dst;
 }
 
-int check_glyph_area(ASS_Library *library, FT_Glyph glyph)
-{
-    FT_BBox bbox;
-    long long dx, dy;
-    FT_Glyph_Get_CBox(glyph, FT_GLYPH_BBOX_TRUNCATE, &bbox);
-    dx = bbox.xMax - bbox.xMin;
-    dy = bbox.yMax - bbox.yMin;
-    if (dx * dy > 8000000) {
-        ass_msg(library, MSGL_WARN, "Glyph bounding box too large: %dx%dpx",
-               (int) dx, (int) dy);
-        return 1;
-    } else
-        return 0;
-}
-
 Bitmap *outline_to_bitmap(ASS_Library *library, FT_Library ftlib,
                           FT_Outline *outline, int bord)
 {
index 71c333ffa2b483a9f9fb9c0492446dbbd6be322d..d21ea4e7557fd55bcafc811f68a860941007b734 100644 (file)
@@ -53,6 +53,5 @@ int outline_to_bitmap3(ASS_Library *library, ASS_SynthPriv *priv_blur,
                        int border_style);
 
 void ass_free_bitmap(Bitmap *bm);
-int check_glyph_area(ASS_Library *library, FT_Glyph glyph);
 
 #endif                          /* LIBASS_BITMAP_H */