Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Dec 31, 2014
1 parent 0f49b9a commit 50ef974
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/main/conffile.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,28 +579,6 @@ void cf_item_add(CONF_SECTION *cs, CONF_ITEM *ci)
break;
}

#if 0
/*
* We'll ignore these checks for
* now. Various sections can be
* duplicated, such as "listen",
* "update", "if", "else", etc.
*/
if (!name1_cs->name2 && !cs_new->name2) {
WARN("%s[%d] Duplicate configuration section \"%s { ...}\" %s %d",
ci->filename, ci->lineno, cs_new->name1,
name1_cs->item.filename, name1_cs->item.lineno);
break;
}

if ((name1_cs->name2 && cs_new->name2) &&
(strcmp(name1_cs->name2, cs_new->name2) == 0)) {
WARN("%s[%d] Duplicate configuration section \"%s %s { ...}\"",
ci->filename, ci->lineno, cs_new->name1, cs_new->name2);
break;
}
#endif

/*
* We already have a section of
* this "name1". Add a new
Expand Down

0 comments on commit 50ef974

Please sign in to comment.