Address cppcheck warnings: uselessOverride (The function '...' overrides a function in a base class but is identical to the overridden function)

This commit is contained in:
Eduardo Arias 2024-04-28 23:40:50 -03:00 committed by Eduardo Arias
parent da38f20e19
commit 7d9c80dede
12 changed files with 0 additions and 36 deletions

View File

@ -32,11 +32,6 @@ namespace modsecurity {
namespace actions {
bool ExpireVar::init(std::string *error) {
return true;
}
bool ExpireVar::evaluate(RuleWithActions *rule, Transaction *t) {
std::string expireExpressionExpanded(m_string->evaluate(t));

View File

@ -40,7 +40,6 @@ class ExpireVar : public Action {
m_string(std::move(z)) { }
bool evaluate(RuleWithActions *rule, Transaction *transaction) override;
bool init(std::string *error) override;
private:

View File

@ -26,11 +26,6 @@ namespace modsecurity {
namespace actions {
bool SetENV::init(std::string *error) {
return true;
}
bool SetENV::evaluate(RuleWithActions *rule, Transaction *t) {
std::string colNameExpanded(m_string->evaluate(t));

View File

@ -40,7 +40,6 @@ class SetENV : public Action {
m_string(std::move(z)) { }
bool evaluate(RuleWithActions *rule, Transaction *transaction) override;
bool init(std::string *error) override;
private:
std::unique_ptr<RunTimeString> m_string;

View File

@ -26,11 +26,6 @@ namespace modsecurity {
namespace actions {
bool SetRSC::init(std::string *error) {
return true;
}
bool SetRSC::evaluate(RuleWithActions *rule, Transaction *t) {
std::string colNameExpanded(m_string->evaluate(t));
ms_dbg_a(t, 8, "RESOURCE initiated with value: \'"

View File

@ -40,7 +40,6 @@ class SetRSC : public Action {
m_string(std::move(z)) { }
bool evaluate(RuleWithActions *rule, Transaction *transaction) override;
bool init(std::string *error) override;
private:
std::unique_ptr<RunTimeString> m_string;

View File

@ -26,11 +26,6 @@ namespace modsecurity {
namespace actions {
bool SetSID::init(std::string *error) {
return true;
}
bool SetSID::evaluate(RuleWithActions *rule, Transaction *t) {
std::string colNameExpanded(m_string->evaluate(t));
ms_dbg_a(t, 8, "Session ID initiated with value: \'"

View File

@ -40,7 +40,6 @@ class SetSID : public Action {
m_string(std::move(z)) { }
bool evaluate(RuleWithActions *rule, Transaction *transaction) override;
bool init(std::string *error) override;
private:
std::unique_ptr<RunTimeString> m_string;

View File

@ -26,11 +26,6 @@ namespace modsecurity {
namespace actions {
bool SetUID::init(std::string *error) {
return true;
}
bool SetUID::evaluate(RuleWithActions *rule, Transaction *t) {
std::string colNameExpanded(m_string->evaluate(t));
ms_dbg_a(t, 8, "User collection initiated with value: \'"

View File

@ -40,7 +40,6 @@ class SetUID : public Action {
m_string(std::move(z)) { }
bool evaluate(RuleWithActions *rule, Transaction *transaction) override;
bool init(std::string *error) override;
private:
std::unique_ptr<RunTimeString> m_string;

View File

@ -35,11 +35,6 @@ namespace modsecurity {
namespace actions {
bool SetVar::init(std::string *error) {
return true;
}
bool SetVar::evaluate(RuleWithActions *rule, Transaction *t) {
std::string targetValue;
std::string resolvedPre;

View File

@ -59,7 +59,6 @@ class SetVar : public Action {
m_variable(std::move(variable)) { }
bool evaluate(RuleWithActions *rule, Transaction *transaction) override;
bool init(std::string *error) override;
private:
SetVarOperation m_operation;