Skip to content

Commit e75e50b

Browse files
committed
Removed redundant code
The "any" hard class is already defined in DetectEnvironment (sysinfo.c), where other hard classes are defined. Signed-off-by: Victor Moene <victor.moene@northern.tech>
1 parent 0788e19 commit e75e50b

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

libpromises/generic_agent.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,8 +1604,6 @@ void GenericAgentInitialize(EvalContext *ctx, GenericAgentConfig *config)
16041604
OpenLog(default_facility);
16051605
SetSyslogFacility(default_facility);
16061606

1607-
EvalContextClassPutHard(ctx, "any", "source=agent");
1608-
16091607
GenericAgentAddEditionClasses(ctx); // May set "enterprise_edition" class
16101608

16111609
const Class *enterprise_edition = EvalContextClassGet(ctx, "default", "enterprise_edition");

0 commit comments

Comments
 (0)