]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
src: remove unused struct fields
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 17 Dec 2024 20:36:32 +0000 (21:36 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 8 Jan 2025 16:06:10 +0000 (17:06 +0100)
Even if they get defined

src/detect-engine.c
src/detect.h
src/source-pcap-file-directory-helper.h
src/source-pcap-file.c
src/util-mpm.c
src/util-mpm.h

index 8c440dff6155a25903a31cf83df053e6688b12e3..d77aa1a8db0a59d35609866e39ffc552567cf05b 100644 (file)
@@ -3303,7 +3303,6 @@ static TmEcode ThreadCtxDoInit (DetectEngineCtx *de_ctx, DetectEngineThreadCtx *
         if (det_ctx->base64_decoded == NULL) {
             return TM_ECODE_FAILED;
         }
-        det_ctx->base64_decoded_len_max = de_ctx->base64_decode_max_len;
         det_ctx->base64_decoded_len = 0;
     }
 
index 4e31c5fe02841e1a057fc6e6e072ae4e5615ca84..b0147e552f1274fea782835cb024a91f2723401d 100644 (file)
@@ -1139,7 +1139,6 @@ typedef struct DetectEngineThreadCtx_ {
 
     uint8_t *base64_decoded;
     int base64_decoded_len;
-    int base64_decoded_len_max;
 
     /* counter for the filestore array below -- up here for cache reasons. */
     uint16_t filestore_cnt;
index b1230b85e9f64f0ec040092c8261a3c99c880583..b6c497ec3b6ad86a30eb7045b8c186248a178643 100644 (file)
@@ -44,7 +44,6 @@ typedef struct PcapFileDirectoryVars_
     PcapFileFileVars *current_file;
     bool should_loop;
     bool should_recurse;
-    uint8_t cur_dir_depth;
     time_t delay;
     time_t poll_interval;
 
index 4492f4698e6aeea7b16cf3a15b96e20619c461eb..9c9f405eb4e72c6e4823f7460ea370acf2d223bf 100644 (file)
@@ -319,7 +319,6 @@ TmEcode ReceivePcapFileThreadInit(ThreadVars *tv, const void *initdata, void **d
             CleanupPcapFileThreadVars(ptv);
             SCReturnInt(TM_ECODE_OK);
         }
-        pv->cur_dir_depth = 0;
 
         int should_recurse;
         pv->should_recurse = false;
index 23ff23082885b5564ecf321c202061658ea3a0ec..9c7c18cfdaaf8bfd114a675b5fa414e4c67878dd 100644 (file)
@@ -108,7 +108,6 @@ int32_t MpmFactoryRegisterMpmCtxProfile(
     else
         pitem->next = nitem;
 
-    de_ctx->mpm_ctx_factory_container->no_of_items++;
     return nitem->id;
 }
 
index 0bcd87899b6c83f2e30b760a6d298c0e62a4f7b9..2309b75dee2e516f361191407a53a7bfdff5fe2d 100644 (file)
@@ -124,7 +124,6 @@ typedef struct MpmCtxFactoryItem {
 
 typedef struct MpmCtxFactoryContainer_ {
     MpmCtxFactoryItem *items;
-    int32_t no_of_items;
     int32_t max_id;
 } MpmCtxFactoryContainer;