[gegl] color-temperature: use parent class' prepare



commit 5115f856d573b5596b578a76ffeeeec83d32829b
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Jul 4 18:57:32 2018 +0200

    color-temperature: use parent class' prepare

 operations/common/color-temperature.c | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/operations/common/color-temperature.c b/operations/common/color-temperature.c
index cea024977..45434832e 100644
--- a/operations/common/color-temperature.c
+++ b/operations/common/color-temperature.c
@@ -81,13 +81,6 @@ convert_k_to_rgb (gfloat  temperature,
 }
 
 
-static void prepare (GeglOperation *operation)
-{
-  const Babl *format = babl_format ("RGBA float");
-  gegl_operation_set_format (operation, "input", format);
-  gegl_operation_set_format (operation, "output", format);
-}
-
 static void
 finalize (GObject *object)
 {
@@ -261,8 +254,6 @@ gegl_op_class_init (GeglOpClass *klass)
   object_class->finalize = finalize;
   object_class->notify   = notify;
 
-  operation_class->prepare = prepare;
-
   point_filter_class->process    = process;
   point_filter_class->cl_process = cl_process;
 


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