From 2a3ed7b879ce95451588ecb4a45207e35ac185f8 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 11 Sep 2007 22:38:53 +0000 Subject: remove unused functions that made this file not build under dev mode git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82270 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/config.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'main') diff --git a/main/config.c b/main/config.c index e8d13a5b2..97e62fa56 100644 --- a/main/config.c +++ b/main/config.c @@ -1333,27 +1333,6 @@ static void set_fn(char *fn, int fn_size, const char *file, const char *configfi snprintf(fn, fn_size, "%s/%s", ast_config_AST_CONFIG_DIR, file); } -static int count_linefeeds(char *str) -{ - int count = 0; - while (*str) { - if (*str =='\n') - count++; - } - return count; -} - -static int count_linefeeds_in_comments(struct ast_comment *x) -{ - int count = 0; - while (x) - { - count += count_linefeeds(x->cmt); - x = x->next; - } - return count; -} - int config_text_file_save(const char *configfile, const struct ast_config *cfg, const char *generator) { FILE *f; -- cgit v1.2.3