Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
flowerysong committed Oct 8, 2024
1 parent 2a8bf37 commit b3484db
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions openarc/openarc.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,30 +407,6 @@ arcf_chgheader(SMFICTX *ctx, char *hname, int idx, char *hvalue)
return smfi_chgheader(ctx, hname, idx, hvalue);
}

/*
** ARCF_QUARANTINE -- wrapper for smfi_quarantine()
**
** Parameters:
** ctx -- milter (or test) context
** reason -- quarantine reason
**
** Return value:
** An sfsistat.
*/

sfsistat
arcf_quarantine(SMFICTX *ctx, char *reason)
{
assert(ctx != NULL);

if (testmode)
return arcf_test_quarantine(ctx, reason);
#ifdef SMFIF_QUARANTINE
else
return smfi_quarantine(ctx, reason);
#endif /* SMFIF_QUARANTINE */
}

/*
** ARCF_ADDHEADER -- wrapper for smfi_addheader()
**
Expand Down Expand Up @@ -1578,17 +1554,6 @@ arcf_config_load(struct config *data, struct arcf_config *conf,
sizeof conf->conf_addswhdr);
}

#ifndef SMFIF_QUARANTINE
if (conf->conf_capture)
{
strlcpy(err,
"quarantining not supported (required for CaptureUnknownErrors",
errlen);

return -1;
}
#endif /* SMFIF_QUARANTINE */

if (become == NULL)
{
(void) config_get(data, "Userid", &become,
Expand Down

0 comments on commit b3484db

Please sign in to comment.