]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
fdr_confirm: remove dead flags
authorJustin Viiret <justin.viiret@intel.com>
Tue, 23 May 2017 03:39:24 +0000 (13:39 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Mon, 21 Aug 2017 00:38:59 +0000 (10:38 +1000)
 - Caseless was unused
 - NoFlags is a bit redundant

src/fdr/fdr_confirm.h
src/fdr/fdr_confirm_compile.cpp

index 7f73ea13441579a39908e3bfd758245cee216de4..816e9fe6dad01fb4ee13a3f1949a3baccba96e65 100644 (file)
@@ -43,8 +43,6 @@ u32 mul_hash_64(u64a lv, u64a andmsk, u64a mult, u32 nBits) {
 #define CONF_HASH_CALL mul_hash_64
 
 typedef enum LitInfoFlags {
-    NoFlags = 0,
-    Caseless = 1,
     NoRepeat = 2,
 } LitInfoFlags;
 
index 3594ed4aee3dda242d68e4a533ab94da55c2d064..7eacb495bb09ddec222ffb6c2bdf441dad7d42b9 100644 (file)
@@ -92,10 +92,7 @@ void fillLitInfo(const vector<hwlmLiteral> &lits, vector<LitInfo> &tmpLitInfo,
         LitInfo &info = tmpLitInfo[i];
         memset(&info, 0, sizeof(info));
         info.id = lit.id;
-        u8 flags = NoFlags;
-        if (lit.nocase) {
-            flags |= Caseless;
-        }
+        u8 flags = 0;
         if (lit.noruns) {
             flags |= NoRepeat;
         }