From 33d8fe4c3e3958f1be6b9587ce419f5b8eaae728 Mon Sep 17 00:00:00 2001 From: tilghman Date: Thu, 21 Sep 2006 21:17:39 +0000 Subject: Remove deprecated CLI apps from the core git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43449 f38db490-d61c-443f-a65b-d21fe96a405b --- main/image.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'main/image.c') diff --git a/main/image.c b/main/image.c index 377ce9208..906a7e8a0 100644 --- a/main/image.c +++ b/main/image.c @@ -180,19 +180,6 @@ int ast_send_image(struct ast_channel *chan, char *filename) return res; } -static int show_image_formats_deprecated(int fd, int argc, char *argv[]) -{ -#define FORMAT "%10s %10s %50s %10s\n" -#define FORMAT2 "%10s %10s %50s %10s\n" - struct ast_imager *i; - if (argc != 3) - return RESULT_SHOWUSAGE; - ast_cli(fd, FORMAT, "Name", "Extensions", "Description", "Format"); - AST_LIST_TRAVERSE(&imagers, i, list) - ast_cli(fd, FORMAT2, i->name, i->exts, i->desc, ast_getformatname(i->format)); - return RESULT_SUCCESS; -} - static int show_image_formats(int fd, int argc, char *argv[]) { #define FORMAT "%10s %10s %50s %10s\n" @@ -206,16 +193,11 @@ static int show_image_formats(int fd, int argc, char *argv[]) return RESULT_SUCCESS; } -struct ast_cli_entry cli_show_image_formats_deprecated = { - { "show", "image", "formats" }, - show_image_formats_deprecated, NULL, - NULL }; - struct ast_cli_entry cli_image[] = { { { "file", "list", "formats", "image" }, show_image_formats, "Displays image formats", "Usage: file list formats image\n" - " displays currently registered image formats (if any)\n", NULL, &cli_show_image_formats_deprecated }, + " displays currently registered image formats (if any)\n" }, }; int ast_image_init(void) -- cgit v1.2.3