]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
htp: remove unused code
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 13 May 2025 07:50:36 +0000 (09:50 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 14 May 2025 19:36:27 +0000 (21:36 +0200)
rust/htp/src/transactions.rs

index 1b2aba9becbe3998938b4b14324909e83c05ca1b..986be4f91b94236738760d118306c6fc2405e173 100644 (file)
@@ -142,30 +142,3 @@ impl Transactions {
         self.transactions.get_mut(&index)
     }
 }
-
-/// An iterator over Transactions
-pub(crate) struct TransactionsIterator<'a> {
-    iter: std::collections::btree_map::IterMut<'a, usize, Transaction>,
-}
-
-impl<'a> Iterator for TransactionsIterator<'a> {
-    type Item = &'a mut Transaction;
-    fn next(&mut self) -> Option<Self::Item> {
-        if let Some((_index, tx)) = self.iter.next() {
-            Some(tx)
-        } else {
-            None
-        }
-    }
-}
-
-impl<'a> IntoIterator for &'a mut Transactions {
-    type Item = &'a mut Transaction;
-    type IntoIter = TransactionsIterator<'a>;
-
-    fn into_iter(self) -> Self::IntoIter {
-        TransactionsIterator {
-            iter: self.transactions.iter_mut(),
-        }
-    }
-}