From 9eea5b03dd3478bc1aeb4a517409c65ac396c0fe Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 29 Jun 2002 11:50:38 +0000 Subject: (AD_mark_current_as_unremovable): Replace dead code with an assertion. --- src/remove.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/remove.c b/src/remove.c index b90055c19..bd1989f6c 100644 --- a/src/remove.c +++ b/src/remove.c @@ -418,9 +418,7 @@ AD_mark_current_as_unremovable (void) struct AD_ent *top = AD_stack_top (); const char *curr = top_dir (); - /* FIXME: assert this? */ - if (AD_stack_height () <= 1) - return; + assert (1 < AD_stack_height ()); --top; AD_mark_helper (&top->unremovable, curr); -- cgit v1.2.3-54-g00ecf