Evas filters: Fix unused variables
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 13 Jan 2016 02:11:53 +0000 (11:11 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 13 Jan 2016 05:50:58 +0000 (14:50 +0900)
Thanks @stefan_schmidt for the report

src/lib/evas/filters/evas_filter.c
src/lib/evas/filters/evas_filter_private.h

index 61f2e08..01d8c7f 100644 (file)
@@ -1280,8 +1280,6 @@ _filter_target_render(Evas_Filter_Context *ctx)
 {
    Evas_Filter_Buffer *src, *dst;
    void *drawctx, *image = NULL, *surface = NULL;
-   int cx, cy, cw, ch;
-   Eina_Bool use_clip = EINA_FALSE;
 
    EINA_SAFETY_ON_FALSE_RETURN_VAL(ctx->target.bufid, EINA_FALSE);
 
@@ -1300,7 +1298,6 @@ _filter_target_render(Evas_Filter_Context *ctx)
 
    if (ctx->target.clip_use)
      {
-        use_clip = ENFN->context_clip_get(ENDT, drawctx, &cx, &cy, &cw, &ch);
         ENFN->context_clip_set(ENDT, drawctx, ctx->target.cx, ctx->target.cy,
                                ctx->target.cw, ctx->target.ch);
      }
index 5ad458b..e834423 100644 (file)
@@ -131,7 +131,6 @@ struct _Evas_Filter_Context
    struct
    {
       int bufid;
-      void *context;
       int x, y;
       int cx, cy, cw, ch; // clip
       int r, g, b, a; // clip color