Skip to content

Commit d3ba231

Browse files
zimmerleFelipe Zimmerle
authored and
Felipe Zimmerle
committed
Removes init from SetVar
1 parent 0f1d3bf commit d3ba231

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/actions/set_var.cc

-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ namespace modsecurity {
3737
namespace actions {
3838

3939

40-
bool SetVar::init(std::string *error) {
41-
return true;
42-
}
43-
44-
4540
bool SetVar::execute(Transaction *t) const noexcept {
4641
std::string targetValue;
4742
std::string resolvedPre;

src/actions/set_var.h

-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ class SetVar : public ActionWithRunTimeString, public ActionWithExecution {
8686

8787

8888
bool execute(Transaction *transaction) const noexcept override;
89-
bool init(std::string *error) override;
9089

9190
void populate(RuleWithActions *rule) override {
9291
ActionWithRunTimeString::populate(rule);

0 commit comments

Comments
 (0)