summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2022-10-12 00:00:00 -0500
committerCraig Small <csmall@dropbear.xyz>2022-10-16 19:56:19 +1100
commit244f2b33f279c6615110c04c6fce56db8a2c1eb0 (patch)
tree41430c61efccbbdd368113f0998a5e7312a34114
parentab05a3785f29cc4b754e17c53bfb3d8ba054563e (diff)
downloadprocps-ng-244f2b33f279c6615110c04c6fce56db8a2c1eb0.tar.gz
top: whack an obsolete string plus its associated code
When long command line options were introduced, in the patch shown below, the string associated with the enum 'WRONG_switch_fmt' became obsolete. However, that enum and its string were never removed. Well, now they are. Reference(s): . Sep, 2021 - getopt and long cmdline options commit c91b371485b7ffaea3a7c669b080328d141dfb6b Signed-off-by: Jim Warner <james.warner@comcast.net>
-rw-r--r--src/top/top_nls.c3
-rw-r--r--src/top/top_nls.h2
2 files changed, 1 insertions, 4 deletions
diff --git a/src/top/top_nls.c b/src/top/top_nls.c
index 84d8acd..fbe2d44 100644
--- a/src/top/top_nls.c
+++ b/src/top/top_nls.c
@@ -409,9 +409,6 @@ static void build_norm_nlstab (void) {
Norm_nlstab[EXIT_signals_fmt] = _(""
"\tsignal %d (%s) was caught by %s, please\n"
"\tsend bug reports to <procps@freelists.org>\n");
- Norm_nlstab[WRONG_switch_fmt] = _(""
- "inappropriate '%s'\n"
- "Usage:\n %s%s");
Norm_nlstab[HELP_cmdline_fmt] = _X("\n"
"Usage:\n"
" %s [options]\n"
diff --git a/src/top/top_nls.h b/src/top/top_nls.h
index a317ba2..020ca9d 100644
--- a/src/top/top_nls.h
+++ b/src/top/top_nls.h
@@ -82,7 +82,7 @@ enum norm_nls {
TIME_accumed_fmt, UNKNOWN_cmds_txt, UNKNOWN_opts_fmt, VERSION_opts_fmt,
WORD_abv_mem_txt, WORD_abv_swp_txt, WORD_allcpus_txt, WORD_another_txt,
WORD_eachcpu_fmt, WORD_exclude_txt, WORD_include_txt, WORD_noneone_txt,
- WORD_process_txt, WORD_threads_txt, WRITE_rcfile_fmt, WRONG_switch_fmt,
+ WORD_process_txt, WORD_threads_txt, WRITE_rcfile_fmt,
XTRA_badflds_fmt, XTRA_fixwide_fmt, XTRA_modebad_txt, XTRA_vforest_fmt,
XTRA_warncfg_txt, XTRA_warnold_txt, XTRA_winsize_txt,
X_BOT_cmdlin_fmt, X_BOT_ctlgrp_fmt, X_BOT_envirn_fmt, X_BOT_msglog_txt,