]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
report: remove dead function satisfiesMinLength
authorJustin Viiret <justin.viiret@intel.com>
Fri, 15 Apr 2016 00:45:52 +0000 (10:45 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 20 Apr 2016 03:34:57 +0000 (13:34 +1000)
src/report.h

index 861abb37e1c8e3838fc5bdf4ccc7433f5e4ced0a..d037d11b4a26fa37a36514e4674a32681aabf537 100644 (file)
 #include "util/exhaust.h"
 #include "util/fatbit.h"
 
-static really_inline
-int satisfiesMinLength(u64a min_len, u64a from_offset,
-                       u64a to_offset) {
-    assert(min_len);
-
-    if (from_offset == HS_OFFSET_PAST_HORIZON) {
-        DEBUG_PRINTF("SOM beyond horizon\n");
-        return 1;
-    }
-
-    DEBUG_PRINTF("match len=%llu, min len=%llu\n", to_offset - from_offset,
-                 min_len);
-    return to_offset - from_offset >= min_len;
-}
-
 enum DedupeResult {
     DEDUPE_CONTINUE, //!< Continue with match, not a dupe.
     DEDUPE_SKIP, //!< Don't report this match, dupe or delayed due to SOM.