joes 2003/04/29 10:54:48
Modified: src apreq_tables.c
Log:
Drop <assert.h> from apreq_tables.c
Revision Changes Path
1.27 +1 -4 httpd-apreq-2/src/apreq_tables.c
Index: apreq_tables.c
===================================================================
RCS file: /home/cvs/httpd-apreq-2/src/apreq_tables.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- apreq_tables.c 29 Apr 2003 07:34:04 -0000 1.26
+++ apreq_tables.c 29 Apr 2003 17:54:48 -0000 1.27
@@ -68,7 +68,6 @@
#endif
#include "apr_signal.h"
-#include <assert.h>
/********************* table_entry structure ********************/
/* private struct */
@@ -262,7 +261,6 @@
if (parent >= 0 && parent[o].color == RED) { \
int parent_direction = LR(parent); \
int grandparent = parent[o].tree[UP]; \
- assert(parent >=0 && grandparent >= 0); \
if (parent_direction != LR(x)) { \
rotate(o, root, parent, parent_direction); \
parent = x; \
@@ -430,8 +428,7 @@
int parent = x[o].tree[UP];
register const int direction = LR(x);
int sibling = parent[o].tree[!direction];
- assert(parent >= 0);
- assert(sibling >= 0);
+
if (sibling[o].color == RED) {
sibling[o].color = BLACK;
parent[o].color = RED;