From: Philippe Antoine Date: Tue, 15 Feb 2022 17:00:01 +0000 (+0100) Subject: nfs: remove unused events variable X-Git-Tag: suricata-7.0.0-beta1~898 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e85dea3ffb6ce6cfeca95dde3fd25a5cb8d67e7;p=thirdparty%2Fsuricata.git nfs: remove unused events variable --- diff --git a/rust/src/nfs/nfs.rs b/rust/src/nfs/nfs.rs index b232da3b1e..0781dcc228 100644 --- a/rust/src/nfs/nfs.rs +++ b/rust/src/nfs/nfs.rs @@ -293,8 +293,6 @@ pub struct NFSState { pub nfs_version: u16, - pub events: u16, - /// tx counter for assigning incrementing id's to tx's tx_id: u64, @@ -330,7 +328,6 @@ impl NFSState { check_post_gap_file_txs:false, post_gap_files_checked:false, nfs_version:0, - events:0, tx_id:0, ts: 0, } @@ -402,7 +399,6 @@ impl NFSState { let tx = &mut self.transactions[len - 1]; tx.tx_data.set_event(event as u8); - self.events += 1; } // TODO maybe not enough users to justify a func