Skip to content

Commit 657aa1d

Browse files
committed
Removed redundant code
Signed-off-by: Victor Moene <victor.moene@northern.tech>
1 parent 5da3380 commit 657aa1d

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

libpromises/generic_agent.c

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

1594-
EvalContextClassPutHard(ctx, "any", "source=agent");
1595-
15961594
GenericAgentAddEditionClasses(ctx); // May set "enterprise_edition" class
15971595

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

libpromises/logic_expressions.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,6 @@ ExpressionValue EvalExpression(const Expression *expr,
250250
{
251251
return EXPRESSION_VALUE_ERROR;
252252
}
253-
else if (strcmp("true", name) == 0)
254-
{
255-
ret = EXPRESSION_VALUE_TRUE;
256-
}
257253
else if (strcmp("false", name) == 0)
258254
{
259255
ret = EXPRESSION_VALUE_FALSE;

0 commit comments

Comments
 (0)