[asterisk-commits] russell: trunk r82270 - /trunk/main/config.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Sep 11 17:38:54 CDT 2007
Author: russell
Date: Tue Sep 11 17:38:53 2007
New Revision: 82270
URL: http://svn.digium.com/view/asterisk?view=rev&rev=82270
Log:
remove unused functions that made this file not build under dev mode
Modified:
trunk/main/config.c
Modified: trunk/main/config.c
URL: http://svn.digium.com/view/asterisk/trunk/main/config.c?view=diff&rev=82270&r1=82269&r2=82270
==============================================================================
--- trunk/main/config.c (original)
+++ trunk/main/config.c Tue Sep 11 17:38:53 2007
@@ -1333,27 +1333,6 @@
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;
More information about the asterisk-commits
mailing list