summaryrefslogtreecommitdiff
path: root/src/remove.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-06-29 11:50:38 +0000
committerJim Meyering <jim@meyering.net>2002-06-29 11:50:38 +0000
commit9eea5b03dd3478bc1aeb4a517409c65ac396c0fe (patch)
treeedf091d4320d972686fa057d0a574fb87a89a085 /src/remove.c
parentb31006ba99b5df2b1e717e23efdc2609fb9fe8eb (diff)
downloadcoreutils-9eea5b03dd3478bc1aeb4a517409c65ac396c0fe.tar.xz
(AD_mark_current_as_unremovable): Replace dead code with an assertion.
Diffstat (limited to 'src/remove.c')
-rw-r--r--src/remove.c4
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);