Message ID | 1524119780-21206-2-git-send-email-vinod.koul@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/src/utils/cplay.c b/src/utils/cplay.c index 98d71a2199da..b02644a3f2ea 100644 --- a/src/utils/cplay.c +++ b/src/utils/cplay.c @@ -100,20 +100,6 @@ static const struct { }; #define CPLAY_NUM_CODEC_IDS (sizeof(codec_ids) / sizeof(codec_ids[0])) -static const char *codec_name_from_id(unsigned int id) -{ - static char hexname[12]; - int i; - - for (i = 0; i < CPLAY_NUM_CODEC_IDS; ++i) { - if (codec_ids[i].id == id) - return codec_ids[i].name; - } - - snprintf(hexname, sizeof(hexname), "0x%x", id); - return hexname; /* a static is safe because we're single-threaded */ -} - static void usage(void) { int i;
The codec_name_from_id() was added but never used so remove it and eliminate unused function warning cplay.c:103:20: warning: ‘codec_name_from_id’ defined but not used [-Wunused-function] We can take from git if user appears Signed-off-by: Vinod Koul <vinod.koul@intel.com> --- CC: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> src/utils/cplay.c | 14 -------------- 1 file changed, 14 deletions(-)