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 27, 2024
1 parent 49af4d3 commit d023a89
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 43 deletions.
7 changes: 0 additions & 7 deletions openarc/openarc-crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,6 @@ arcf_crypto_init(void)
CRYPTO_set_dynlock_lock_callback(&arcf_crypto_dyn_lock);
CRYPTO_set_dynlock_destroy_callback(&arcf_crypto_dyn_destroy);

#ifdef USE_OPENSSL_ENGINE
if (!SSL_set_engine(NULL))
{
return EINVAL;
}
#endif /* USE_OPENSSL_ENGINE */

crypto_init_done = true;

return 0;
Expand Down
36 changes: 0 additions & 36 deletions openarc/openarc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1398,9 +1398,6 @@ arcf_config_load(struct config *data,
size_t errlen,
char *become)
{
#ifdef USE_LDAP
bool btmp;
#endif /* USE_LDAP */
char *str;
char basedir[MAXPATHLEN + 1];

Expand Down Expand Up @@ -2237,38 +2234,11 @@ arcf_cleanup(SMFICTX *ctx)
arc_free(afc->mctx_arcmsg);
}

#ifdef _FFR_VBR
if (afc->mctx_vbr != NULL)
{
vbr_close(afc->mctx_vbr);
}

ARC_FREE(afc->mctx_vbrinfo);
#endif /* _FFR_VBR */

if (afc->mctx_tmpstr != NULL)
{
arc_dstring_free(afc->mctx_tmpstr);
}

#ifdef _FFR_STATSEXT
if (afc->mctx_statsext != NULL)
{
struct statsext *cur;
struct statsext *next;

cur = afc->mctx_statsext;
while (cur != NULL)
{
next = cur->se_next;

ARC_FREE(cur);

cur = next;
}
}
#endif /* _FFR_STATSEXT */

ARC_FREE(afc);
cc->cctx_msg = NULL;
}
Expand Down Expand Up @@ -3017,9 +2987,6 @@ mlfi_envfrom(SMFICTX *ctx, char **envfrom)
sfsistat
mlfi_header(SMFICTX *ctx, char *headerf, char *headerv)
{
#ifdef _FFR_REPLACE_RULES
bool dorepl = false;
#endif /* _FFR_REPLACE_RULES */
msgctx afc;
connctx cc;
Header newhdr;
Expand Down Expand Up @@ -4137,9 +4104,6 @@ main(int argc, char **argv)
char *chrootdir = NULL;
char *p;
char *pidfile = NULL;
#ifdef POPAUTH
char *popdbfile = NULL;
#endif /* POPAUTH */
char *testfile = NULL;
struct config *cfg = NULL;
char *end;
Expand Down

0 comments on commit d023a89

Please sign in to comment.