[gegl] remove unused variables and static functions



commit 04794760016c2ececaf8ec092175a4287065317e
Author: Nils Philippsen <nils redhat com>
Date:   Fri Feb 19 15:12:54 2010 +0100

    remove unused variables and static functions

 operations/workshop/mirrors.c   |   12 ++++--------
 operations/workshop/posterize.c |    8 --------
 2 files changed, 4 insertions(+), 16 deletions(-)
---
diff --git a/operations/workshop/mirrors.c b/operations/workshop/mirrors.c
index f783b2a..e619879 100644
--- a/operations/workshop/mirrors.c
+++ b/operations/workshop/mirrors.c
@@ -128,11 +128,12 @@ apply_mirror (double mirror_angle,
               GeglRectangle *boundary,
               const GeglRectangle *roi)
 {
-  const GeglRectangle *src_extent;
-  const GeglRectangle *dst_extent;
+#ifdef DO_NOT_USE_BUFFER_SAMPLE
   gfloat *src_buf;
+  gint spx_pos, dpx_pos, ix, iy;
+#endif
   gfloat *dst_buf;
-  gint row, col, spx_pos, dpx_pos, ix, iy;
+  gint row, col;
   gdouble cx, cy;
 //   double eff_width = (in_boundary->width - in_boundary->x);
 //   double eff_height = (in_boundary->height - in_boundary->y);
@@ -322,10 +323,6 @@ get_required_for_output (GeglOperation       *operation,
                          const gchar         *input_pad,
                          const GeglRectangle *roi)
 {
-
-  GeglRectangle *in_rect = gegl_operation_source_get_bounding_box (operation, "input");
-  GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
-
   GeglRectangle  result = get_effective_area (operation);
 
   #ifdef TRACE
@@ -357,7 +354,6 @@ process (GeglOperation       *operation,
   GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
   GeglRectangle boundary = gegl_operation_get_bounding_box (operation);
   GeglRectangle  eff_boundary = get_effective_area (operation);
-  GeglRectangle *in_boundary = gegl_operation_source_get_bounding_box (operation, "input");
   Babl *format = babl_format ("RaGaBaA float");
 
 
diff --git a/operations/workshop/posterize.c b/operations/workshop/posterize.c
index 43c515f..a90045c 100644
--- a/operations/workshop/posterize.c
+++ b/operations/workshop/posterize.c
@@ -38,14 +38,6 @@ gegl_chant_int (levels, _("Levels"), 1, 64, 8,
 #endif
 
 
-static void prepare (GeglOperation *operation)
-{
-  /* We posterize sRGB data since it is more perceptually spaced than linear data
-   */
-  gegl_operation_set_format (operation, "input", babl_format ("R'G'B'A float"));
-  gegl_operation_set_format (operation, "output", babl_format ("R'G'B'A float"));
-}
-
 static gboolean process (GeglOperation       *operation,
                          void                *in_buf,
                          void                *out_buf,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]