From: Joshua Colp Date: Fri, 10 Nov 2006 19:51:15 +0000 (+0000) Subject: A trunk that builds is a productive trunk. X-Git-Tag: 1.6.0-beta1~3^2~4040 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0282cc1a4debcd25041e578823a416c62561ebec;p=thirdparty%2Fasterisk.git A trunk that builds is a productive trunk. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47464 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cli.c b/main/cli.c index 5a4557f6fe..f51ed37a8a 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,