aboutsummaryrefslogtreecommitdiff
path: root/src/backend/nodes/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/nodes/list.c')
-rw-r--r--src/backend/nodes/list.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/backend/nodes/list.c b/src/backend/nodes/list.c
index e0e7f7f9bec..2b826cdc9f4 100644
--- a/src/backend/nodes/list.c
+++ b/src/backend/nodes/list.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/list.c,v 1.12 1998/02/26 04:32:08 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/list.c,v 1.13 1998/06/15 19:28:31 momjian Exp $
*
* NOTES
* XXX a few of the following functions are duplicated to handle
@@ -122,9 +122,7 @@ nreverse(List *list)
return (list);
for (p = list; p != NULL; p = lnext(p))
- {
rlist = lcons(lfirst(p), rlist);
- }
lfirst(list) = lfirst(rlist);
lnext(list) = lnext(rlist);
@@ -324,9 +322,7 @@ LispUnion(List *l1, List *l2)
}
}
foreach(i, l2)
- {
retval = lappend(retval, lfirst(i));
- }
return (retval);
}
@@ -356,9 +352,7 @@ LispUnioni(List *l1, List *l2)
}
}
foreach(i, l2)
- {
retval = lappendi(retval, lfirsti(i));
- }
return (retval);
}
@@ -410,13 +404,9 @@ lremove(void *elem, List *list)
if (l != NULL)
{
if (prev == NIL)
- {
result = lnext(list);
- }
else
- {
lnext(prev) = lnext(l);
- }
}
return result;
}