summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDom Lachowicz <doml@src.gnome.org>2004-06-16 22:38:51 +0000
committerDom Lachowicz <doml@src.gnome.org>2004-06-16 22:38:51 +0000
commit3f6bbdaaf6f2abf20975c91ea47ed16c7089a63f (patch)
treeab768242d70028fb2bd07c8d3053f9814ad90b56
parent078169b972868240ff788aa104fa7eb61fb74863 (diff)
downloadlibrsvg-3f6bbdaaf6f2abf20975c91ea47ed16c7089a63f.tar.gz
get rid of unused functions and variables
-rw-r--r--rsvg-text-vectors.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/rsvg-text-vectors.c b/rsvg-text-vectors.c
index 9f6a450c..2aa85978 100644
--- a/rsvg-text-vectors.c
+++ b/rsvg-text-vectors.c
@@ -61,7 +61,6 @@ struct _RenderCtx
typedef void (* RsvgTextRenderFunc) (PangoFont *font,
PangoGlyph glyph,
FT_Int32 load_flags,
- FT_Matrix *trafo,
gint x,
gint y,
gpointer render_data);
@@ -354,29 +353,6 @@ cubicto (FT_Vector *ftcontrol1,
}
static void
-rsvg_text_layout_render_trafo (RsvgTextLayout *layout,
- FT_Matrix *trafo)
-{
- RsvgState * state;
-
- state = rsvg_state_current(layout->ctx);
- if(0 /* state */)
- {
- trafo->xx = state->affine[0] * 65536.0;
- trafo->xy = state->affine[1] * 65536.0;
- trafo->yx = state->affine[2] * 65536.0;
- trafo->yy = state->affine[3] * 65536.0;
- }
- else
- {
- trafo->xx = 1 * 65536.0;
- trafo->xy = 0 * 65536.0;
- trafo->yx = 0 * 65536.0;
- trafo->yy = 1 * 65536.0;
- }
-}
-
-static void
rsvg_text_layout_render_glyphs (RsvgTextLayout *layout,
PangoFont *font,
PangoGlyphString *glyphs,
@@ -387,13 +363,11 @@ rsvg_text_layout_render_glyphs (RsvgTextLayout *layout,
{
PangoGlyphInfo *gi;
FT_Int32 flags;
- FT_Matrix trafo;
FT_Vector pos;
gint i;
gint x_position = 0;
flags = rsvg_text_layout_render_flags (layout);
- rsvg_text_layout_render_trafo (layout, &trafo);
for (i = 0, gi = glyphs->glyphs; i < glyphs->num_glyphs; i++, gi++)
{
@@ -402,10 +376,7 @@ rsvg_text_layout_render_glyphs (RsvgTextLayout *layout,
pos.x = x + x_position + gi->geometry.x_offset;
pos.y = y + gi->geometry.y_offset;
- FT_Vector_Transform (&pos, &trafo);
-
- render_func (font, gi->glyph, flags, &trafo,
- pos.x, pos.y,
+ render_func (font, gi->glyph, flags, pos.x, pos.y,
render_data);
}
@@ -417,7 +388,6 @@ static void
rsvg_text_render_vectors (PangoFont *font,
PangoGlyph pango_glyph,
FT_Int32 flags,
- FT_Matrix *trafo,
gint x,
gint y,
gpointer ud)
@@ -555,10 +525,6 @@ rsvg_text_render_text (RsvgHandle *ctx,
if (render->wrote)
g_string_append_c(render->path, 'Z');
-#ifdef RSVG_TEXT_DEBUG
- fprintf(stderr, "%s\n", render->path->str);
-#endif
-
rsvg_handle_path (ctx, render->path->str, id);
rsvg_render_ctx_free (render);