Skip to content

Commit d023a89

Browse files
committed
Remove dead code
1 parent 49af4d3 commit d023a89

File tree

2 files changed

+0
-43
lines changed

2 files changed

+0
-43
lines changed

openarc/openarc-crypto.c

-7
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,6 @@ arcf_crypto_init(void)
285285
CRYPTO_set_dynlock_lock_callback(&arcf_crypto_dyn_lock);
286286
CRYPTO_set_dynlock_destroy_callback(&arcf_crypto_dyn_destroy);
287287

288-
#ifdef USE_OPENSSL_ENGINE
289-
if (!SSL_set_engine(NULL))
290-
{
291-
return EINVAL;
292-
}
293-
#endif /* USE_OPENSSL_ENGINE */
294-
295288
crypto_init_done = true;
296289

297290
return 0;

openarc/openarc.c

-36
Original file line numberDiff line numberDiff line change
@@ -1398,9 +1398,6 @@ arcf_config_load(struct config *data,
13981398
size_t errlen,
13991399
char *become)
14001400
{
1401-
#ifdef USE_LDAP
1402-
bool btmp;
1403-
#endif /* USE_LDAP */
14041401
char *str;
14051402
char basedir[MAXPATHLEN + 1];
14061403

@@ -2237,38 +2234,11 @@ arcf_cleanup(SMFICTX *ctx)
22372234
arc_free(afc->mctx_arcmsg);
22382235
}
22392236

2240-
#ifdef _FFR_VBR
2241-
if (afc->mctx_vbr != NULL)
2242-
{
2243-
vbr_close(afc->mctx_vbr);
2244-
}
2245-
2246-
ARC_FREE(afc->mctx_vbrinfo);
2247-
#endif /* _FFR_VBR */
2248-
22492237
if (afc->mctx_tmpstr != NULL)
22502238
{
22512239
arc_dstring_free(afc->mctx_tmpstr);
22522240
}
22532241

2254-
#ifdef _FFR_STATSEXT
2255-
if (afc->mctx_statsext != NULL)
2256-
{
2257-
struct statsext *cur;
2258-
struct statsext *next;
2259-
2260-
cur = afc->mctx_statsext;
2261-
while (cur != NULL)
2262-
{
2263-
next = cur->se_next;
2264-
2265-
ARC_FREE(cur);
2266-
2267-
cur = next;
2268-
}
2269-
}
2270-
#endif /* _FFR_STATSEXT */
2271-
22722242
ARC_FREE(afc);
22732243
cc->cctx_msg = NULL;
22742244
}
@@ -3017,9 +2987,6 @@ mlfi_envfrom(SMFICTX *ctx, char **envfrom)
30172987
sfsistat
30182988
mlfi_header(SMFICTX *ctx, char *headerf, char *headerv)
30192989
{
3020-
#ifdef _FFR_REPLACE_RULES
3021-
bool dorepl = false;
3022-
#endif /* _FFR_REPLACE_RULES */
30232990
msgctx afc;
30242991
connctx cc;
30252992
Header newhdr;
@@ -4137,9 +4104,6 @@ main(int argc, char **argv)
41374104
char *chrootdir = NULL;
41384105
char *p;
41394106
char *pidfile = NULL;
4140-
#ifdef POPAUTH
4141-
char *popdbfile = NULL;
4142-
#endif /* POPAUTH */
41434107
char *testfile = NULL;
41444108
struct config *cfg = NULL;
41454109
char *end;

0 commit comments

Comments
 (0)