summaryrefslogtreecommitdiff
path: root/tests/test-classifier.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-10-14 10:30:07 -0700
committerBen Pfaff <blp@nicira.com>2010-10-29 09:53:51 -0700
commitfbb2ea0b5bebaae691ce6ac4b3a2eed65c775d9b (patch)
tree87f34985edc9b181b1764a31d28640e8f3241458 /tests/test-classifier.c
parente65dc5c57e4520d838350607d256f251e4d81235 (diff)
downloadopenvswitch-fbb2ea0b5bebaae691ce6ac4b3a2eed65c775d9b.tar.gz
classifier: Remove classifier_insert_exact().
This function doesn't provide any extra useful functionality. It is amenable to a slightly optimized implementation in the current classifier, but not in the one that will soon replace it, so get rid of it.
Diffstat (limited to 'tests/test-classifier.c')
-rw-r--r--tests/test-classifier.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/test-classifier.c b/tests/test-classifier.c
index fe7155bb8..d8c0e1021 100644
--- a/tests/test-classifier.c
+++ b/tests/test-classifier.c
@@ -516,11 +516,7 @@ test_single_rule(int argc OVS_UNUSED, char *argv[] OVS_UNUSED)
tcls_init(&tcls);
tcls_rule = tcls_insert(&tcls, rule);
- if (wc_fields) {
- assert(!classifier_insert(&cls, &rule->cls_rule));
- } else {
- classifier_insert_exact(&cls, &rule->cls_rule);
- }
+ assert(!classifier_insert(&cls, &rule->cls_rule));
check_tables(&cls, 1, 1, 1);
compare_classifiers(&cls, &tcls);