remove unused functions that made this file not build under dev mode
authorRussell Bryant <russell@russellbryant.com>
Tue, 11 Sep 2007 22:38:53 +0000 (22:38 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 11 Sep 2007 22:38:53 +0000 (22:38 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82270 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/config.c

index e8d13a5..97e62fa 100644 (file)
@@ -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;