]> granicus.if.org Git - libass/commitdiff
Remove unused variables
authorwm4 <wm4@nowhere>
Sat, 22 Jun 2013 17:28:35 +0000 (19:28 +0200)
committerwm4 <wm4@nowhere>
Sat, 22 Jun 2013 17:28:35 +0000 (19:28 +0200)
libass/ass_render.c
libass/ass_shaper.c

index b517dd0ae9acab9ba62feb7e11351bdcf1457901..e592548dc3e1f5e71c185eb8eee2a60e08aa0d58 100644 (file)
@@ -1683,8 +1683,6 @@ ass_render_event(ASS_Renderer *render_priv, ASS_Event *event,
                  EventImages *event_images)
 {
     char *p;
-    FT_UInt previous;
-    FT_UInt num_glyphs;
     FT_Vector pen;
     unsigned code;
     DBBox bbox;
@@ -1711,7 +1709,6 @@ ass_render_event(ASS_Renderer *render_priv, ASS_Event *event,
 
     drawing = render_priv->state.drawing;
     text_info->length = 0;
-    num_glyphs = 0;
     p = event->Text;
 
     int in_tag = 0;
@@ -1874,7 +1871,6 @@ ass_render_event(ASS_Renderer *render_priv, ASS_Event *event,
     }
 
     // Preliminary layout (for line wrapping)
-    previous = 0;
     pen.x = 0;
     pen.y = 0;
     for (i = 0; i < text_info->length; i++) {
@@ -1896,7 +1892,6 @@ ass_render_event(ASS_Renderer *render_priv, ASS_Event *event,
         info = glyphs + i;
         pen.x += info->cluster_advance.x;
         pen.y += info->cluster_advance.y;
-        previous = info->symbol;
     }
 
 
index 87b6c6dc36769c5576d22446a0432c242855654f..e745a31391c7335917d16fbf7de93ffad45ff6f4 100644 (file)
@@ -884,10 +884,9 @@ FriBidiStrIndex *ass_shaper_reorder(ASS_Shaper *shaper, TextInfo *text_info)
     // Create reorder map line-by-line
     for (i = 0; i < text_info->n_lines; i++) {
         LineInfo *line = text_info->lines + i;
-        int level;
         FriBidiParType dir = FRIBIDI_PAR_ON;
 
-        level = fribidi_reorder_line(0,
+        fribidi_reorder_line(0,
                 shaper->ctypes + line->offset, line->len, 0, dir,
                 shaper->emblevels + line->offset, NULL,
                 shaper->cmap + line->offset);