mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
fdr_confirm: remove dead flags
- Caseless was unused - NoFlags is a bit redundant
This commit is contained in:
parent
e8c0b5685f
commit
c36c071564
@ -43,8 +43,6 @@ u32 mul_hash_64(u64a lv, u64a andmsk, u64a mult, u32 nBits) {
|
|||||||
#define CONF_HASH_CALL mul_hash_64
|
#define CONF_HASH_CALL mul_hash_64
|
||||||
|
|
||||||
typedef enum LitInfoFlags {
|
typedef enum LitInfoFlags {
|
||||||
NoFlags = 0,
|
|
||||||
Caseless = 1,
|
|
||||||
NoRepeat = 2,
|
NoRepeat = 2,
|
||||||
} LitInfoFlags;
|
} LitInfoFlags;
|
||||||
|
|
||||||
|
@ -92,10 +92,7 @@ void fillLitInfo(const vector<hwlmLiteral> &lits, vector<LitInfo> &tmpLitInfo,
|
|||||||
LitInfo &info = tmpLitInfo[i];
|
LitInfo &info = tmpLitInfo[i];
|
||||||
memset(&info, 0, sizeof(info));
|
memset(&info, 0, sizeof(info));
|
||||||
info.id = lit.id;
|
info.id = lit.id;
|
||||||
u8 flags = NoFlags;
|
u8 flags = 0;
|
||||||
if (lit.nocase) {
|
|
||||||
flags |= Caseless;
|
|
||||||
}
|
|
||||||
if (lit.noruns) {
|
if (lit.noruns) {
|
||||||
flags |= NoRepeat;
|
flags |= NoRepeat;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user