From: Mark Michelson Date: Fri, 22 Aug 2008 19:23:02 +0000 (+0000) Subject: Remove show_frame_stats_deprecated since it is not X-Git-Tag: 1.4.22-rc3~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74e98c599513576516a59158e3531a8b49fb567b;p=thirdparty%2Fasterisk.git Remove show_frame_stats_deprecated since it is not used anywhere and causes build errors if building under dev-mode with TRACE_FRAMES selected in menuselect. (closes issue #13362) Reported by: snuffy git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@139521 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/frame.c b/main/frame.c index 45dafeb3d2..d64fa09a7e 100644 --- a/main/frame.c +++ b/main/frame.c @@ -932,23 +932,6 @@ void ast_frame_dump(const char *name, struct ast_frame *f, char *prefix) #ifdef TRACE_FRAMES -static int show_frame_stats_deprecated(int fd, int argc, char *argv[]) -{ - struct ast_frame *f; - int x=1; - if (argc != 3) - return RESULT_SHOWUSAGE; - AST_LIST_LOCK(&headerlist); - ast_cli(fd, " Framer Statistics \n"); - ast_cli(fd, "---------------------------\n"); - ast_cli(fd, "Total allocated headers: %d\n", headers); - ast_cli(fd, "Queue Dump:\n"); - AST_LIST_TRAVERSE(&headerlist, f, frame_list) - ast_cli(fd, "%d. Type %d, subclass %d from %s\n", x++, f->frametype, f->subclass, f->src ? f->src : ""); - AST_LIST_UNLOCK(&headerlist); - return RESULT_SUCCESS; -} - static int show_frame_stats(int fd, int argc, char *argv[]) { struct ast_frame *f;