From 6f1a93ad111c7dfe36a09a976c4c009079b19ea1 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Fri, 30 Jan 2015 12:46:49 -0500 Subject: Dead code removal: #if 0 conf, dso, pqueue, threads Mostly, but not completely, debugging print statements. Some old logic kept for internal documentation reasons, perhaps. Reviewed-by: Richard Levitte --- crypto/dso/dso_dl.c | 12 ------------ crypto/dso/dso_dlfcn.c | 11 ----------- crypto/dso/dso_null.c | 5 ----- crypto/dso/dso_vms.c | 12 ------------ crypto/dso/dso_win32.c | 26 -------------------------- 5 files changed, 66 deletions(-) (limited to 'crypto/dso') diff --git a/crypto/dso/dso_dl.c b/crypto/dso/dso_dl.c index 1f4d198663..989d4d9587 100644 --- a/crypto/dso/dso_dl.c +++ b/crypto/dso/dso_dl.c @@ -77,13 +77,6 @@ static int dl_load(DSO *dso); static int dl_unload(DSO *dso); static void *dl_bind_var(DSO *dso, const char *symname); static DSO_FUNC_TYPE dl_bind_func(DSO *dso, const char *symname); -# if 0 -static int dl_unbind_var(DSO *dso, char *symname, void *symptr); -static int dl_unbind_func(DSO *dso, char *symname, DSO_FUNC_TYPE symptr); -static int dl_init(DSO *dso); -static int dl_finish(DSO *dso); -static int dl_ctrl(DSO *dso, int cmd, long larg, void *parg); -# endif static char *dl_name_converter(DSO *dso, const char *filename); static char *dl_merger(DSO *dso, const char *filespec1, const char *filespec2); @@ -96,11 +89,6 @@ static DSO_METHOD dso_meth_dl = { dl_unload, dl_bind_var, dl_bind_func, -/* For now, "unbind" doesn't exist */ -# if 0 - NULL, /* unbind_var */ - NULL, /* unbind_func */ -# endif NULL, /* ctrl */ dl_name_converter, dl_merger, diff --git a/crypto/dso/dso_dlfcn.c b/crypto/dso/dso_dlfcn.c index ec87f475f8..c9a9a8bbb0 100644 --- a/crypto/dso/dso_dlfcn.c +++ b/crypto/dso/dso_dlfcn.c @@ -99,12 +99,6 @@ static int dlfcn_load(DSO *dso); static int dlfcn_unload(DSO *dso); static void *dlfcn_bind_var(DSO *dso, const char *symname); static DSO_FUNC_TYPE dlfcn_bind_func(DSO *dso, const char *symname); -# if 0 -static int dlfcn_unbind(DSO *dso, char *symname, void *symptr); -static int dlfcn_init(DSO *dso); -static int dlfcn_finish(DSO *dso); -static long dlfcn_ctrl(DSO *dso, int cmd, long larg, void *parg); -# endif static char *dlfcn_name_converter(DSO *dso, const char *filename); static char *dlfcn_merger(DSO *dso, const char *filespec1, const char *filespec2); @@ -117,11 +111,6 @@ static DSO_METHOD dso_meth_dlfcn = { dlfcn_unload, dlfcn_bind_var, dlfcn_bind_func, -/* For now, "unbind" doesn't exist */ -# if 0 - NULL, /* unbind_var */ - NULL, /* unbind_func */ -# endif NULL, /* ctrl */ dlfcn_name_converter, dlfcn_merger, diff --git a/crypto/dso/dso_null.c b/crypto/dso/dso_null.c index 20122d1cab..ab2125c286 100644 --- a/crypto/dso/dso_null.c +++ b/crypto/dso/dso_null.c @@ -72,11 +72,6 @@ static DSO_METHOD dso_meth_null = { NULL, /* unload */ NULL, /* bind_var */ NULL, /* bind_func */ -/* For now, "unbind" doesn't exist */ -#if 0 - NULL, /* unbind_var */ - NULL, /* unbind_func */ -#endif NULL, /* ctrl */ NULL, /* dso_name_converter */ NULL, /* dso_merger */ diff --git a/crypto/dso/dso_vms.c b/crypto/dso/dso_vms.c index 8793f7e0ff..6498184124 100644 --- a/crypto/dso/dso_vms.c +++ b/crypto/dso/dso_vms.c @@ -95,13 +95,6 @@ static int vms_load(DSO *dso); static int vms_unload(DSO *dso); static void *vms_bind_var(DSO *dso, const char *symname); static DSO_FUNC_TYPE vms_bind_func(DSO *dso, const char *symname); -# if 0 -static int vms_unbind_var(DSO *dso, char *symname, void *symptr); -static int vms_unbind_func(DSO *dso, char *symname, DSO_FUNC_TYPE symptr); -static int vms_init(DSO *dso); -static int vms_finish(DSO *dso); -static long vms_ctrl(DSO *dso, int cmd, long larg, void *parg); -# endif static char *vms_name_converter(DSO *dso, const char *filename); static char *vms_merger(DSO *dso, const char *filespec1, const char *filespec2); @@ -112,11 +105,6 @@ static DSO_METHOD dso_meth_vms = { NULL, /* unload */ vms_bind_var, vms_bind_func, -/* For now, "unbind" doesn't exist */ -# if 0 - NULL, /* unbind_var */ - NULL, /* unbind_func */ -# endif NULL, /* ctrl */ vms_name_converter, vms_merger, diff --git a/crypto/dso/dso_win32.c b/crypto/dso/dso_win32.c index c65234e9c4..e671672920 100644 --- a/crypto/dso/dso_win32.c +++ b/crypto/dso/dso_win32.c @@ -119,13 +119,6 @@ static int win32_load(DSO *dso); static int win32_unload(DSO *dso); static void *win32_bind_var(DSO *dso, const char *symname); static DSO_FUNC_TYPE win32_bind_func(DSO *dso, const char *symname); -# if 0 -static int win32_unbind_var(DSO *dso, char *symname, void *symptr); -static int win32_unbind_func(DSO *dso, char *symname, DSO_FUNC_TYPE symptr); -static int win32_init(DSO *dso); -static int win32_finish(DSO *dso); -static long win32_ctrl(DSO *dso, int cmd, long larg, void *parg); -# endif static char *win32_name_converter(DSO *dso, const char *filename); static char *win32_merger(DSO *dso, const char *filespec1, const char *filespec2); @@ -140,11 +133,6 @@ static DSO_METHOD dso_meth_win32 = { win32_unload, win32_bind_var, win32_bind_func, -/* For now, "unbind" doesn't exist */ -# if 0 - NULL, /* unbind_var */ - NULL, /* unbind_func */ -# endif NULL, /* ctrl */ win32_name_converter, win32_merger, @@ -476,13 +464,6 @@ static char *win32_joiner(DSO *dso, const struct file_st *file_split) offset++; start = end + 1; } -# if 0 /* Not needed, since the directory converter - * above already appeneded a backslash */ - if (file_split->predir && (file_split->dir || file_split->file)) { - result[offset] = '\\'; - offset++; - } -# endif start = file_split->dir; while (file_split->dirlen > (start - file_split->dir)) { const char *end = openssl_strnchr(start, '/', @@ -496,13 +477,6 @@ static char *win32_joiner(DSO *dso, const struct file_st *file_split) offset++; start = end + 1; } -# if 0 /* Not needed, since the directory converter - * above already appeneded a backslash */ - if (file_split->dir && file_split->file) { - result[offset] = '\\'; - offset++; - } -# endif strncpy(&result[offset], file_split->file, file_split->filelen); offset += file_split->filelen; result[offset] = '\0'; -- cgit v1.2.3