[Pkg-shadow-devel] [PATCH 6/7] lib: remove broken and dead code

Sami Kerola kerolasa at iki.fi
Fri Aug 30 06:04:27 UTC 2013


subordinateio.c:123:1: warning: no return statement in function returning
	non-void [-Wreturn-type]
subordinateio.c:120:64: warning: 'subordinate_next' defined but not used
	[-Wunused-function]

Signed-off-by: Sami Kerola <kerolasa at iki.fi>
---
 lib/subordinateio.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lib/subordinateio.c b/lib/subordinateio.c
index 0ba117b..303e805 100644
--- a/lib/subordinateio.c
+++ b/lib/subordinateio.c
@@ -150,11 +150,6 @@ static struct commonio_ops subordinate_ops = {
 	NULL,			/* close_hook */
 };
 
-static /*@observer@*/ /*@null*/const struct subordinate_range *subordinate_next(struct commonio_db *db)
-{
-	return (const struct subordinate_range *)commonio_next (db);
-}
-
 /*
  * range_exists: Check whether @owner owns any ranges
  *
-- 
1.8.4




More information about the Pkg-shadow-devel mailing list