From: Victor Julien Date: Tue, 17 May 2016 16:05:26 +0000 (+0200) Subject: flow: remove dead code X-Git-Tag: suricata-3.1RC1~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61ce05e7ed8a8ef7b02ff57f2e7c6281003ef62c;p=thirdparty%2Fsuricata.git flow: remove dead code --- diff --git a/src/flow.h b/src/flow.h index 3335f96797..95f3333a65 100644 --- a/src/flow.h +++ b/src/flow.h @@ -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