Permalink
Browse files

WaE: -Wunused-function

  • Loading branch information...
khaledhosny committed Sep 10, 2012
1 parent 2d78e50 commit fa0353d5e2c718f3741313a21300b32c82f946b1
Showing with 0 additions and 88 deletions.
  1. +0 −38 fontforge/parsettf.c
  2. +0 −50 fontforge/splinesave.c
View
@@ -5919,44 +5919,6 @@ static void MMFillFromVAR(SplineFont *sf, struct ttfinfo *info) {
VariationFree(info);
}
-static void SFRelativeWinAsDs(SplineFont *sf) {
- if ( !sf->pfminfo.winascent_add || !sf->pfminfo.windescent_add ||
- !sf->pfminfo.hheadascent_add || !sf->pfminfo.hheaddescent_add ) {
- DBounds b;
- CIDLayerFindBounds(sf,ly_fore,&b);
- if ( !sf->pfminfo.winascent_add ) {
- sf->pfminfo.winascent_add = true;
- if ( sf->pfminfo.os2_winascent < sf->ascent/8 ) {
- /* There was a bug for a while which gave us really bad values */
- sf->pfminfo.os2_winascent = 0;
- sf->pfminfo.windescent_add = true;
- sf->pfminfo.os2_windescent = 0;
- } else
- sf->pfminfo.os2_winascent -= b.maxy;
- }
- if ( !sf->pfminfo.windescent_add ) {
- sf->pfminfo.windescent_add = true;
- sf->pfminfo.os2_windescent += b.miny;
- }
- if ( !sf->pfminfo.hheadascent_add ) {
- sf->pfminfo.hheadascent_add = true;
- sf->pfminfo.hhead_ascent -= b.maxy;
- }
- if ( !sf->pfminfo.hheaddescent_add ) {
- sf->pfminfo.hheaddescent_add = true;
- sf->pfminfo.hhead_descent -= b.miny;
- }
- }
- if ( !sf->pfminfo.typoascent_add ) {
- sf->pfminfo.typoascent_add = true;
- sf->pfminfo.os2_typoascent -= sf->ascent;
- }
- if ( !sf->pfminfo.typodescent_add ) {
- sf->pfminfo.typodescent_add = true;
- sf->pfminfo.os2_typodescent -= -sf->descent;
- }
-}
-
static void PsuedoEncodeUnencoded(EncMap *map,struct ttfinfo *info) {
int extras, base;
int i;
View
@@ -1191,56 +1191,6 @@ static void _CvtPsSplineSet(GrowBuf *gb, SplinePointList *spl[MmMax], int instan
SplinePointListsFree(freeme);
}
-static RefChar *IsRefable(RefChar *ref, int isps, real transform[6], RefChar *sofar, int layer) {
- real trans[6];
- RefChar *sub;
- struct reflayer *rl;
-
- trans[0] = ref->transform[0]*transform[0] +
- ref->transform[1]*transform[2];
- trans[1] = ref->transform[0]*transform[1] +
- ref->transform[1]*transform[3];
- trans[2] = ref->transform[2]*transform[0] +
- ref->transform[3]*transform[2];
- trans[3] = ref->transform[2]*transform[1] +
- ref->transform[3]*transform[3];
- trans[4] = ref->transform[4]*transform[0] +
- ref->transform[5]*transform[2] +
- transform[4];
- trans[5] = ref->transform[4]*transform[1] +
- ref->transform[5]*transform[3] +
- transform[5];
-
- if (( isps==1 && ref->adobe_enc!=-1 ) ||
- (/*isps!=1 &&*/ (ref->sc->layers[layer].splines!=NULL || ref->sc->layers[layer].refs==NULL))) {
- /* If we're in postscript mode and the character we are refering to */
- /* has an adobe encoding then we are done. */
- /* In TrueType mode, if the character has no refs itself then we are */
- /* done, but if it has splines as well as refs we are also done */
- /* because it will have to be dumped out as splines */
- /* Type2 PS (opentype) is the same as truetype here */
- /* Now that I allow refs to be subrs in type1, it also uses the ttf test */
- sub = RefCharCreate();
- rl = sub->layers;
- *sub = *ref;
- sub->layers = rl;
- *rl = ref->layers[0];
- sub->next = sofar;
- /*sub->layers[0].splines = NULL;*/
- memcpy(sub->transform,trans,sizeof(trans));
-return( sub );
- } else if ( /* isps &&*/ ( ref->sc->layers[layer].refs==NULL || ref->sc->layers[layer].splines!=NULL) ) {
- RefCharsFreeRef(sofar);
-return( NULL );
- }
- for ( sub=ref->sc->layers[layer].refs; sub!=NULL; sub=sub->next ) {
- sofar = IsRefable(sub,isps,trans, sofar, layer);
- if ( sofar==NULL )
-return( NULL );
- }
-return( sofar );
-}
-
static int IsPSSeacable(SplineChar *sc,int layer) {
RefChar *ref;

0 comments on commit fa0353d

Please sign in to comment.