]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(AD_mark_current_as_unremovable): Replace dead code with an assertion.
authorJim Meyering <jim@meyering.net>
Sat, 29 Jun 2002 11:50:38 +0000 (11:50 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 29 Jun 2002 11:50:38 +0000 (11:50 +0000)
src/remove.c

index b90055c1945b66f76cd02858f3770df57ab68250..bd1989f6c1e1f8264d08b573ab570eda8cc33cb6 100644 (file)
@@ -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);