util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] lib/signames: remove unused function
@ 2017-11-26 17:47 Sami Kerola
  2017-11-26 17:47 ` [PATCH 2/3] logindefs: " Sami Kerola
  2017-11-26 17:47 ` [PATCH 3/3] eject: remove list_speeds() #ifdef CDROM_SELECT_SPEED protection Sami Kerola
  0 siblings, 2 replies; 4+ messages in thread
From: Sami Kerola @ 2017-11-26 17:47 UTC (permalink / raw)
  To: util-linux; +Cc: Sami Kerola

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
 include/signames.h | 1 -
 lib/signames.c     | 5 -----
 2 files changed, 6 deletions(-)

diff --git a/include/signames.h b/include/signames.h
index 2096ad845..a4fd1bc59 100644
--- a/include/signames.h
+++ b/include/signames.h
@@ -3,7 +3,6 @@
 
 int signame_to_signum(const char *sig);
 const char *signum_to_signame(int signum);
-size_t get_numof_signames(void);
 int get_signame_by_idx(size_t idx, const char **signame, int *signum);
 
 #endif /* SIGNAMES_H */
diff --git a/lib/signames.c b/lib/signames.c
index a654e88b1..316eec527 100644
--- a/lib/signames.c
+++ b/lib/signames.c
@@ -189,11 +189,6 @@ const char *signum_to_signame(int signum)
 	return NULL;
 }
 
-size_t get_numof_signames(void)
-{
-	return ARRAY_SIZE(ul_signames);
-}
-
 int get_signame_by_idx(size_t idx, const char **signame, int *signum)
 {
 	if (idx >= ARRAY_SIZE(ul_signames))
-- 
2.15.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-28 13:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-26 17:47 [PATCH 1/3] lib/signames: remove unused function Sami Kerola
2017-11-26 17:47 ` [PATCH 2/3] logindefs: " Sami Kerola
2017-11-28 13:52   ` Karel Zak
2017-11-26 17:47 ` [PATCH 3/3] eject: remove list_speeds() #ifdef CDROM_SELECT_SPEED protection Sami Kerola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).