diff options
author | Ben Pfaff <blp@nicira.com> | 2010-11-11 15:08:35 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-11-12 14:50:45 -0800 |
commit | cd10ed7fb4fb5b1e3ed8e3fae1fd115c7ae96e77 (patch) | |
tree | f8008b0e04acad8575768b40dbe3ef47beee5cc1 /lib/classifier.h | |
parent | 3c4486a5f784731b1cb289d187ad9d9e100407c3 (diff) |
classifier: Delete dead code specialized for the exact table.
These functions and macros are no longer used.
Diffstat (limited to 'lib/classifier.h')
-rw-r--r-- | lib/classifier.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/classifier.h b/lib/classifier.h index 233893bb..1dc9edc6 100644 --- a/lib/classifier.h +++ b/lib/classifier.h @@ -104,9 +104,7 @@ void classifier_init(struct classifier *); void classifier_destroy(struct classifier *); bool classifier_is_empty(const struct classifier *); int classifier_count(const struct classifier *); -int classifier_count_exact(const struct classifier *); struct cls_rule *classifier_insert(struct classifier *, struct cls_rule *); -void classifier_insert_exact(struct classifier *, struct cls_rule *); void classifier_remove(struct classifier *, struct cls_rule *); struct cls_rule *classifier_lookup(const struct classifier *, const struct flow *); @@ -123,22 +121,4 @@ void classifier_for_each_match(const struct classifier *, struct cls_rule *classifier_find_rule_exactly(const struct classifier *, const struct cls_rule *); -/* Iteration shorthands. */ - -struct cls_table *classifier_exact_table(const struct classifier *); -struct cls_rule *cls_table_first_rule(const struct cls_table *); -struct cls_rule *cls_table_next_rule(const struct cls_table *, - const struct cls_rule *); - -#define CLS_TABLE_FOR_EACH_RULE(RULE, MEMBER, TABLE) \ - for ((RULE) = OBJECT_CONTAINING(cls_table_first_rule(TABLE), \ - RULE, MEMBER); \ - &(RULE)->MEMBER != NULL; \ - (RULE) = OBJECT_CONTAINING(cls_table_next_rule(TABLE, \ - &(RULE)->MEMBER), \ - RULE, MEMBER)) - -#define CLASSIFIER_FOR_EACH_EXACT_RULE(RULE, MEMBER, CLS) \ - CLS_TABLE_FOR_EACH_RULE (RULE, MEMBER, classifier_exact_table(CLS)) - #endif /* classifier.h */ |