From: Jim Meyering Date: Sat, 29 Jun 2002 11:50:38 +0000 (+0000) Subject: (AD_mark_current_as_unremovable): Replace dead code with an assertion. X-Git-Tag: FILEUTILS-4_1_10~158 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9eea5b03dd3478bc1aeb4a517409c65ac396c0fe;p=thirdparty%2Fcoreutils.git (AD_mark_current_as_unremovable): Replace dead code with an assertion. --- diff --git a/src/remove.c b/src/remove.c index b90055c194..bd1989f6c1 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);