Code

src/filter_chain.c: Delete dead code.
[collectd.git] / src / filter_chain.c
index 5ad9655c9a355f53d80865db99de55f0528273ee..e25e7a03316dfd07dfb282b3fcd06c205014bcef 100644 (file)
@@ -387,7 +387,6 @@ static int fc_config_add_rule (fc_chain_t *chain, /* {{{ */
   for (i = 0; i < ci->children_num; i++)
   {
     oconfig_item_t *option = ci->children + i;
-    status = 0;
 
     if (strcasecmp ("Match", option->key) == 0)
       status = fc_config_add_match (&rule->matches, option);
@@ -471,7 +470,6 @@ static int fc_config_add_chain (const oconfig_item_t *ci) /* {{{ */
   for (i = 0; i < ci->children_num; i++)
   {
     oconfig_item_t *option = ci->children + i;
-    status = 0;
 
     if (strcasecmp ("Rule", option->key) == 0)
       status = fc_config_add_rule (chain, option);
@@ -979,10 +977,6 @@ int fc_process_chain (const data_set_t *ds, value_list_t *vl, /* {{{ */
   else if (status == FC_TARGET_RETURN)
     return (FC_TARGET_CONTINUE);
 
-  /* for-loop has been aborted: A target returned `FC_TARGET_STOP' */
-  if (rule != NULL)
-    return (FC_TARGET_CONTINUE);
-
   DEBUG ("fc_process_chain (%s): Executing the default targets.",
       chain->name);