From e3084e0771f6a5b17db2edd7ab7a39c4fce4761d Mon Sep 17 00:00:00 2001 From: mmichelson Date: Fri, 22 Aug 2008 19:23:02 +0000 Subject: 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: http://svn.digium.com/svn/asterisk/branches/1.4@139521 f38db490-d61c-443f-a65b-d21fe96a405b --- main/frame.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/main/frame.c b/main/frame.c index 45dafeb3d..d64fa09a7 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; -- cgit v1.2.3