summaryrefslogtreecommitdiffstats
path: root/crypto/conf/conf_api.c
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/conf_api.c
parent2e635aa81cf1c4e3fd7cb0334c79e7d0771140f1 (diff)
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/conf_api.c')
-rw-r--r--crypto/conf/conf_api.c22
1 files changed, 0 insertions, 22 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);