[gegl/soc-2011-warp: 26/31] gegl-path: remove wrong code. After searching in the commit history, i'm still unsure what it was su
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2011-warp: 26/31] gegl-path: remove wrong code. After searching in the commit history, i'm still unsure what it was su
- Date: Thu, 4 Aug 2011 16:07:28 +0000 (UTC)
commit 9c89a7a7dcef351b32ea3d508eadaa9a2c3b16ce
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]