Remove superfluous RuleCondition destructors

This commit is contained in:
Jon Siwek 2020-10-12 11:20:50 -07:00
parent b73cc816e9
commit cbe47650d1

View file

@ -35,8 +35,6 @@ public:
explicit RuleConditionTCPState(int arg_tcpstates) explicit RuleConditionTCPState(int arg_tcpstates)
{ tcpstates = arg_tcpstates; } { tcpstates = arg_tcpstates; }
~RuleConditionTCPState() override { }
bool DoMatch(Rule* rule, RuleEndpointState* state, bool DoMatch(Rule* rule, RuleEndpointState* state,
const u_char* data, int len) override; const u_char* data, int len) override;
@ -73,9 +71,6 @@ public:
explicit RuleConditionIPOptions(int arg_options) { options = arg_options; } explicit RuleConditionIPOptions(int arg_options) { options = arg_options; }
~RuleConditionIPOptions() override
{ }
bool DoMatch(Rule* rule, RuleEndpointState* state, bool DoMatch(Rule* rule, RuleEndpointState* state,
const u_char* data, int len) override; const u_char* data, int len) override;
@ -89,7 +84,6 @@ private:
class RuleConditionSameIP : public RuleCondition { class RuleConditionSameIP : public RuleCondition {
public: public:
RuleConditionSameIP() { } RuleConditionSameIP() { }
~RuleConditionSameIP() override {}
bool DoMatch(Rule* rule, RuleEndpointState* state, bool DoMatch(Rule* rule, RuleEndpointState* state,
const u_char* data, int len) override; const u_char* data, int len) override;
@ -105,8 +99,6 @@ public:
RuleConditionPayloadSize(uint32_t arg_val, Comp arg_comp) RuleConditionPayloadSize(uint32_t arg_val, Comp arg_comp)
{ val = arg_val; comp = arg_comp; } { val = arg_val; comp = arg_comp; }
~RuleConditionPayloadSize() override {}
bool DoMatch(Rule* rule, RuleEndpointState* state, bool DoMatch(Rule* rule, RuleEndpointState* state,
const u_char* data, int len) override; const u_char* data, int len) override;
@ -121,7 +113,6 @@ private:
class RuleConditionEval : public RuleCondition { class RuleConditionEval : public RuleCondition {
public: public:
explicit RuleConditionEval(const char* func); explicit RuleConditionEval(const char* func);
~RuleConditionEval() override {}
bool DoMatch(Rule* rule, RuleEndpointState* state, bool DoMatch(Rule* rule, RuleEndpointState* state,
const u_char* data, int len) override; const u_char* data, int len) override;