Skip to content

Commit

Permalink
Remove cf_section_template(). No one uses it
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Feb 11, 2014
1 parent bb94f52 commit 1915b61
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/include/conffile.h
Expand Up @@ -100,7 +100,6 @@ CONF_PAIR *cf_itemtopair(CONF_ITEM const *item);
CONF_SECTION *cf_itemtosection(CONF_ITEM const *item);
CONF_ITEM *cf_pairtoitem(CONF_PAIR const *cp);
CONF_ITEM *cf_sectiontoitem(CONF_SECTION const *cs);
int cf_section_template(CONF_SECTION *cs, CONF_SECTION *template);
void cf_log_err(CONF_ITEM const *ci, char const *fmt, ...)
#ifdef __GNUC__
__attribute__ ((format (printf, 2, 3)))
Expand Down
9 changes: 0 additions & 9 deletions src/main/conffile.c
Expand Up @@ -2716,15 +2716,6 @@ int cf_section_migrate(CONF_SECTION *dst, CONF_SECTION *src)
}
#endif

int cf_section_template(CONF_SECTION *cs, CONF_SECTION *template)
{
if (!cs || !template || cs->template || template->template) return -1;

cs->template = template;

return 0;
}


/*
* This is here to make the rest of the code easier to read. It
Expand Down

0 comments on commit 1915b61

Please sign in to comment.