* src/base/ftobjs.c (FT_Request_Metrics), src/cache/ftccmap.c

(FTC_CMapCache_Lookup): Remove unused code.
This commit is contained in:
Werner Lemberg 2007-06-01 21:27:12 +00:00
parent c793d90fca
commit b9933f4b02
3 changed files with 13 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2007-06-01 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (FT_Request_Metrics), src/cache/ftccmap.c
(FTC_CMapCache_Lookup): Remove unused code.
2007-06-01 Sean McBride <sean@rogue-research.com>
* src/truetype/ttinterp.c (Null_Vector, NULL_Vector): Removed,

View File

@ -2243,16 +2243,16 @@
w = h = face->ascender - face->descender;
break;
case FT_SIZE_REQUEST_TYPE_CELL:
w = face->max_advance_width;
h = face->ascender - face->descender;
break;
case FT_SIZE_REQUEST_TYPE_BBOX:
w = face->bbox.xMax - face->bbox.xMin;
h = face->bbox.yMax - face->bbox.yMin;
break;
case FT_SIZE_REQUEST_TYPE_CELL:
w = face->max_advance_width;
h = face->ascender - face->descender;
break;
case FT_SIZE_REQUEST_TYPE_SCALES:
metrics->x_scale = (FT_Fixed)req->width;
metrics->y_scale = (FT_Fixed)req->height;
@ -2262,9 +2262,8 @@
metrics->y_scale = metrics->x_scale;
goto Calculate_Ppem;
default:
/* this never happens */
return;
case FT_SIZE_REQUEST_TYPE_MAX:
break;
}
/* to be on the safe side */

3
src/cache/ftccmap.c vendored
View File

@ -4,7 +4,7 @@
/* */
/* FreeType CharMap cache (body) */
/* */
/* Copyright 2000-2001, 2002, 2003, 2004, 2005, 2006 by */
/* Copyright 2000-2001, 2002, 2003, 2004, 2005, 2006, 2007 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@ -341,7 +341,6 @@
return FT_Get_Char_Index( face, char_code );
}
break;
default:
return 0;