[gegl] buffer: remove buffer/gegl-sampler.c:gegl_sampler_type_from_string



commit 8721cbbb3dd0f8c4a08eb1b3d291871ee4c03b5b
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Jun 18 18:40:20 2014 +0200

    buffer: remove buffer/gegl-sampler.c:gegl_sampler_type_from_string

 gegl/buffer/gegl-sampler.c |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler.c b/gegl/buffer/gegl-sampler.c
index d4e9aa5..aeddae9 100644
--- a/gegl/buffer/gegl-sampler.c
+++ b/gegl/buffer/gegl-sampler.c
@@ -434,27 +434,6 @@ set_buffer (GeglSampler *self, GeglBuffer *buffer)
     }
 }
 
-GeglSamplerType
-gegl_sampler_type_from_string (const gchar *string)
-{
-  if (g_str_equal (string, "nearest") || g_str_equal (string, "none"))
-    return GEGL_SAMPLER_NEAREST;
-
-  if (g_str_equal (string, "linear")  || g_str_equal (string, "bilinear"))
-    return GEGL_SAMPLER_LINEAR;
-
-  if (g_str_equal (string, "cubic")   || g_str_equal (string, "bicubic"))
-    return GEGL_SAMPLER_CUBIC;
-
-  if (g_str_equal (string, "nohalo"))
-    return GEGL_SAMPLER_NOHALO;
-
-  if (g_str_equal (string, "lohalo"))
-    return GEGL_SAMPLER_LOHALO;
-
-  return GEGL_SAMPLER_LINEAR;
-}
-
 static inline GType
 gegl_sampler_gtype_from_enum (GeglSamplerType sampler_type)
 {


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