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



commit d1efc03d810e7001a252d22876ac4fec12953e5d
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 0aa1315..f4cf7dd 100644
--- a/gegl/property-types/gegl-path.c
+++ b/gegl/property-types/gegl-path.c
@@ -799,24 +799,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]