]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow: remove dead code
authorVictor Julien <victor@inliniac.net>
Tue, 17 May 2016 16:05:26 +0000 (18:05 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 20 May 2016 07:04:27 +0000 (09:04 +0200)
src/flow.h

index 3335f967972ecdec7be3a69fbd4d3415356f0399..95f3333a65dcb431e3b5e29b8f605b6b07baeedf 100644 (file)
@@ -453,33 +453,13 @@ struct FlowQueue_;
 
 int FlowUpdateSpareFlows(void);
 
-static inline void FlowLockSetNoPacketInspectionFlag(Flow *);
 static inline void FlowSetNoPacketInspectionFlag(Flow *);
-static inline void FlowLockSetNoPayloadInspectionFlag(Flow *);
 static inline void FlowSetNoPayloadInspectionFlag(Flow *);
 
 int FlowGetPacketDirection(const Flow *, const Packet *);
 
 void FlowCleanupAppLayer(Flow *);
 
-/** ----- Inline functions ----- */
-
-/** \brief Set the No Packet Inspection Flag after locking the flow.
- *
- * \param f Flow to set the flag in
- */
-static inline void FlowLockSetNoPacketInspectionFlag(Flow *f)
-{
-    SCEnter();
-
-    SCLogDebug("flow %p", f);
-    FLOWLOCK_WRLOCK(f);
-    f->flags |= FLOW_NOPACKET_INSPECTION;
-    FLOWLOCK_UNLOCK(f);
-
-    SCReturn;
-}
-
 /** \brief Set the No Packet Inspection Flag without locking the flow.
  *
  * \param f Flow to set the flag in
@@ -494,22 +474,6 @@ static inline  void FlowSetNoPacketInspectionFlag(Flow *f)
     SCReturn;
 }
 
-/** \brief Set the No payload inspection Flag after locking the flow.
- *
- * \param f Flow to set the flag in
- */
-static inline void FlowLockSetNoPayloadInspectionFlag(Flow *f)
-{
-    SCEnter();
-
-    SCLogDebug("flow %p", f);
-    FLOWLOCK_WRLOCK(f);
-    f->flags |= FLOW_NOPAYLOAD_INSPECTION;
-    FLOWLOCK_UNLOCK(f);
-
-    SCReturn;
-}
-
 /** \brief Set the No payload inspection Flag without locking the flow.
  *
  * \param f Flow to set the flag in