delete useless code

This commit is contained in:
liuwentan
2023-04-21 11:18:30 +08:00
parent 6b080322f4
commit d79648b4dc
6 changed files with 11 additions and 33 deletions

View File

@@ -27,9 +27,6 @@ struct bool_plugin_schema {
int table_id;
struct table_manager *ref_tbl_mgr;
struct log_handle *logger;
unsigned long long update_err_cnt;
unsigned long long unmatch_tag_cnt;
};
struct bool_plugin_runtime {
@@ -270,7 +267,6 @@ int bool_plugin_accept_tag_match(struct bool_plugin_schema *schema, const char *
log_error(logger, MODULE_BOOL_PLUGIN,
"[%s:%d] bool_plugin table(table_id:%d) has no rule_tag, line:%s",
__FUNCTION__, __LINE__, schema->table_id, line);
schema->update_err_cnt++;
return TAG_MATCH_ERR;
}
@@ -283,12 +279,10 @@ int bool_plugin_accept_tag_match(struct bool_plugin_schema *schema, const char *
log_error(logger, MODULE_BOOL_PLUGIN,
"[%s:%d] bool_plugin table(table_id:%d) has invalid tag format, line:%s",
__FUNCTION__, __LINE__, schema->table_id, line);
schema->update_err_cnt++;
return TAG_MATCH_ERR;
}
if (TAG_MATCH_UNMATCHED == ret) {
schema->unmatch_tag_cnt++;
return TAG_MATCH_UNMATCHED;
}
}