aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/conf
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2015-01-30 12:46:49 -0500
committerRich Salz <rsalz@openssl.org>2015-01-30 12:46:49 -0500
commit6f1a93ad111c7dfe36a09a976c4c009079b19ea1 (patch)
treedb4a17ad2c86410d1caac79780892a6ff3786b26 /crypto/conf
parent2e635aa81cf1c4e3fd7cb0334c79e7d0771140f1 (diff)
downloadopenssl-6f1a93ad111c7dfe36a09a976c4c009079b19ea1.tar.gz
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 <levitte@openssl.org>
Diffstat (limited to 'crypto/conf')
-rw-r--r--crypto/conf/conf_api.c22
-rw-r--r--crypto/conf/conf_lib.c16
2 files changed, 0 insertions, 38 deletions
diff --git a/crypto/conf/conf_api.c b/crypto/conf/conf_api.c
index 4cf7553376..ff73f3822f 100644
--- a/crypto/conf/conf_api.c
+++ b/crypto/conf/conf_api.c
@@ -157,28 +157,6 @@ char *_CONF_get_string(const CONF *conf, const char *section,
return (getenv(name));
}
-#if 0 /* There's no way to provide error checking
- * with this function, so force implementors
- * of the higher levels to get a string and
- * read the number themselves. */
-long _CONF_get_number(CONF *conf, char *section, char *name)
-{
- char *str;
- long ret = 0;
-
- str = _CONF_get_string(conf, section, name);
- if (str == NULL)
- return (0);
- for (;;) {
- if (conf->meth->is_number(conf, *str))
- ret = ret * 10 + conf->meth->to_int(conf, *str);
- else
- return (ret);
- str++;
- }
-}
-#endif
-
static unsigned long conf_value_hash(const CONF_VALUE *v)
{
return (lh_strhash(v->section) << 2) ^ lh_strhash(v->name);
diff --git a/crypto/conf/conf_lib.c b/crypto/conf/conf_lib.c
index 2aadb37ee5..29e77c742b 100644
--- a/crypto/conf/conf_lib.c
+++ b/crypto/conf/conf_lib.c
@@ -373,19 +373,3 @@ int NCONF_dump_bio(const CONF *conf, BIO *out)
return conf->meth->dump(conf, out);
}
-
-/* This function should be avoided */
-#if 0
-long NCONF_get_number(CONF *conf, char *group, char *name)
-{
- int status;
- long ret = 0;
-
- status = NCONF_get_number_e(conf, group, name, &ret);
- if (status == 0) {
- /* This function does not believe in errors... */
- ERR_get_error();
- }
- return ret;
-}
-#endif