aboutsummaryrefslogtreecommitdiffstats
path: root/main/image.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-21 21:17:39 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-21 21:17:39 +0000
commit33d8fe4c3e3958f1be6b9587ce419f5b8eaae728 (patch)
treef363c53cb57dcc4f7096ee473679d70a1bf1dae7 /main/image.c
parenta8a88e0f99de4ad1809685f6df832d71fbb22cfa (diff)
Remove deprecated CLI apps from the core
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43449 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/image.c')
-rw-r--r--main/image.c20
1 files changed, 1 insertions, 19 deletions
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)