summaryrefslogtreecommitdiff
path: root/main/cli.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2006-11-10 19:51:15 +0000
committerJoshua Colp <jcolp@digium.com>2006-11-10 19:51:15 +0000
commit0282cc1a4debcd25041e578823a416c62561ebec (patch)
tree4ccde9c25b0a674c4590d434b38662d7582f2855 /main/cli.c
parent352158671203ecb94738230f7a3a8a720180dd92 (diff)
A trunk that builds is a productive trunk.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/main/cli.c b/main/cli.c
index 5a4557f6f..f51ed37a8 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -206,33 +206,6 @@ static int handle_reload(int fd, int argc, char *argv[])
return RESULT_SUCCESS;
}
-static int handle_set_verbose_deprecated(int fd, int argc, char *argv[])
-{
- int val = 0;
- int oldval = option_verbose;
-
- /* "set verbose [atleast] N" */
- if (argc == 3)
- option_verbose = atoi(argv[2]);
- else if (argc == 4) {
- if (strcasecmp(argv[2], "atleast"))
- return RESULT_SHOWUSAGE;
- val = atoi(argv[3]);
- if (val > option_verbose)
- option_verbose = val;
- } else
- return RESULT_SHOWUSAGE;
-
- if (oldval != option_verbose && option_verbose > 0)
- ast_cli(fd, "Verbosity was %d and is now %d\n", oldval, option_verbose);
- else if (oldval > 0 && option_verbose > 0)
- ast_cli(fd, "Verbosity is at least %d\n", option_verbose);
- else if (oldval > 0 && option_verbose == 0)
- ast_cli(fd, "Verbosity is now OFF\n");
-
- return RESULT_SUCCESS;
-}
-
static int handle_verbose(int fd, int argc, char *argv[])
{
int oldval = option_verbose;
@@ -1123,41 +1096,6 @@ static struct ast_cli_entry cli_debug_channel_deprecated = {
handle_debugchan_deprecated, NULL,
NULL, complete_ch_3 };
-static struct ast_cli_entry cli_debug_level_deprecated = {
- { "debug", "level", NULL },
- handle_debuglevel_deprecated, NULL,
- NULL };
-
-static struct ast_cli_entry cli_set_debug_deprecated = {
- { "set", "debug", NULL },
- handle_set_debug_deprecated, NULL,
- NULL, NULL, &cli_debug_level_deprecated };
-
-static struct ast_cli_entry cli_set_verbose_deprecated = {
- { "set", "verbose", NULL },
- handle_set_verbose_deprecated, NULL,
- NULL };
-
-static struct ast_cli_entry cli_show_channel_deprecated = {
- { "show", "channel", NULL },
- handle_showchan, NULL,
- NULL, complete_ch_3 };
-
-static struct ast_cli_entry cli_show_channels_deprecated = {
- { "show", "channels", NULL },
- handle_chanlist, NULL,
- NULL, complete_show_channels };
-
-static struct ast_cli_entry cli_show_modules_deprecated = {
- { "show", "modules", NULL },
- handle_modlist, NULL,
- NULL };
-
-static struct ast_cli_entry cli_show_modules_like_deprecated = {
- { "show", "modules", "like", NULL },
- handle_modlist, NULL,
- NULL, complete_mod_4 };
-
static struct ast_cli_entry cli_module_load_deprecated = {
{ "load", NULL },
handle_load_deprecated, NULL,