[gegl/soc-2011-warp: 14/20] gegl-path: remove wrong code. After searching in the commit history, i'm still unsure what it was su



commit 2ab8d5c1a62ef2807bef4b768bd323a9d6648449
Author: Michael Murà <batolettre gmail com>
Date:   Tue Aug 2 14:08:00 2011 +0200

    gegl-path: remove wrong code. After searching in the commit history, i'm still unsure what it was supposed to be, but it can't be good.

 gegl/property-types/gegl-path.c |   20 ++++++--------------
 1 files changed, 6 insertions(+), 14 deletions(-)
---
diff --git a/gegl/property-types/gegl-path.c b/gegl/property-types/gegl-path.c
index 3bc62f0..f483ad5 100644
--- a/gegl/property-types/gegl-path.c
+++ b/gegl/property-types/gegl-path.c
@@ -802,24 +802,16 @@ gegl_path_parse_string (GeglPath    *vector,
 
       if (!info && ((type>= '0' && type <= '9') || type == '-'))
         {
-          if (!previnfo)   /* XXX: suspicious code !!! */
+          if (previnfo->type == 'M')
             {
-              info = previnfo;
-              type = previnfo->type;  /* XXX: previnfo _is_ NULL */
+              info = lookup_instruction_info(type = 'L');
             }
-          else
+          else if (previnfo->type == 'm')
             {
-              if (previnfo->type == 'M')
-                {
-                  info = lookup_instruction_info(type = 'L');
-                }
-              else if (previnfo->type == 'm')
-                {
-                  info = lookup_instruction_info(type = 'l');
-                }
-              else if (previnfo->type == ' ')
-                g_warning ("EEEK");
+              info = lookup_instruction_info(type = 'l');
             }
+          else if (previnfo->type == ' ')
+            g_warning ("EEEK");
         }
 
       if (info)



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