зеркало из https://github.com/stride3d/freetype.git
Remove unused variables.
* include/freetype/internal/psaux.h (T1_BuilderRec), src/cff/cffgload.h (CFF_Builder): Remove `last'. Update all users.
This commit is contained in:
Родитель
41821f8a8a
Коммит
1f540eff0b
|
@ -1,3 +1,11 @@
|
|||
2009-06-20 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
Remove unused variables.
|
||||
|
||||
* include/freetype/internal/psaux.h (T1_BuilderRec),
|
||||
src/cff/cffgload.h (CFF_Builder): Remove `last'.
|
||||
Update all users.
|
||||
|
||||
2009-06-20 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[psaux] Check large integers while parsing charstrings.
|
||||
|
|
|
@ -533,8 +533,6 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* max_contours :: Maximal number of contours in builder outline. */
|
||||
/* */
|
||||
/* last :: The last point position. */
|
||||
/* */
|
||||
/* pos_x :: The horizontal translation (if composite glyph). */
|
||||
/* */
|
||||
/* pos_y :: The vertical translation (if composite glyph). */
|
||||
|
@ -567,8 +565,6 @@ FT_BEGIN_HEADER
|
|||
FT_Outline* base;
|
||||
FT_Outline* current;
|
||||
|
||||
FT_Vector last;
|
||||
|
||||
FT_Pos pos_x;
|
||||
FT_Pos pos_y;
|
||||
|
||||
|
|
|
@ -472,8 +472,6 @@
|
|||
point->x = x >> 16;
|
||||
point->y = y >> 16;
|
||||
*control = (FT_Byte)( flag ? FT_CURVE_TAG_ON : FT_CURVE_TAG_CUBIC );
|
||||
|
||||
builder->last = *point;
|
||||
}
|
||||
|
||||
outline->n_points++;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* */
|
||||
/* OpenType Glyph Loader (specification). */
|
||||
/* */
|
||||
/* Copyright 1996-2001, 2002, 2003, 2004, 2006, 2007, 2008 by */
|
||||
/* Copyright 1996-2001, 2002, 2003, 2004, 2006, 2007, 2008, 2009 by */
|
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
@ -53,8 +53,6 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* current :: The current glyph outline. */
|
||||
/* */
|
||||
/* last :: The last point position. */
|
||||
/* */
|
||||
/* pos_x :: The horizontal translation (if composite glyph). */
|
||||
/* */
|
||||
/* pos_y :: The vertical translation (if composite glyph). */
|
||||
|
@ -88,8 +86,6 @@ FT_BEGIN_HEADER
|
|||
FT_Outline* base;
|
||||
FT_Outline* current;
|
||||
|
||||
FT_Vector last;
|
||||
|
||||
FT_Pos pos_x;
|
||||
FT_Pos pos_y;
|
||||
|
||||
|
|
|
@ -1559,8 +1559,6 @@
|
|||
point->x = x;
|
||||
point->y = y;
|
||||
*control = (FT_Byte)( flag ? FT_CURVE_TAG_ON : FT_CURVE_TAG_CUBIC );
|
||||
|
||||
builder->last = *point;
|
||||
}
|
||||
outline->n_points++;
|
||||
}
|
||||
|
|
|
@ -1070,8 +1070,8 @@
|
|||
builder->advance.x = top[1];
|
||||
builder->advance.y = 0;
|
||||
|
||||
orig_x = builder->last.x = x = builder->pos_x + top[0];
|
||||
orig_y = builder->last.y = y = builder->pos_y;
|
||||
orig_x = x = builder->pos_x + top[0];
|
||||
orig_y = y = builder->pos_y;
|
||||
|
||||
FT_UNUSED( orig_y );
|
||||
|
||||
|
@ -1098,8 +1098,8 @@
|
|||
builder->advance.x = top[2];
|
||||
builder->advance.y = top[3];
|
||||
|
||||
builder->last.x = x = builder->pos_x + top[0];
|
||||
builder->last.y = y = builder->pos_y + top[1];
|
||||
x = builder->pos_x + top[0];
|
||||
y = builder->pos_y + top[1];
|
||||
|
||||
/* the `metrics_only' indicates that we only want to compute */
|
||||
/* the glyph's metrics (lsb + advance width), not load the */
|
||||
|
|
Загрузка…
Ссылка в новой задаче