From: Sami Kerola <kerolasa@iki.fi>
To: util-linux@vger.kernel.org
Cc: Sami Kerola <kerolasa@iki.fi>
Subject: [PATCH 1/3] lib/signames: remove unused function
Date: Sun, 26 Nov 2017 17:47:49 +0000 [thread overview]
Message-ID: <20171126174751.10500-1-kerolasa@iki.fi> (raw)
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
next reply other threads:[~2017-11-26 17:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-26 17:47 Sami Kerola [this message]
2017-11-26 17:47 ` [PATCH 2/3] logindefs: remove unused function 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171126174751.10500-1-kerolasa@iki.fi \
--to=kerolasa@iki.fi \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).