diff options
author | Jim Meyering <jim@meyering.net> | 2002-06-29 11:50:38 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-06-29 11:50:38 +0000 |
commit | 9eea5b03dd3478bc1aeb4a517409c65ac396c0fe (patch) | |
tree | edf091d4320d972686fa057d0a574fb87a89a085 | |
parent | b31006ba99b5df2b1e717e23efdc2609fb9fe8eb (diff) | |
download | coreutils-9eea5b03dd3478bc1aeb4a517409c65ac396c0fe.tar.xz |
(AD_mark_current_as_unremovable): Replace dead code with an assertion.
-rw-r--r-- | src/remove.c | 4 |
1 files changed, 1 insertions, 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); |