2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-05 09:05:40 +00:00

Remove unused obsolete isc_hash_* function, and just keep the FNV-1a version

This commit is contained in:
Ondřej Surý
2018-03-27 16:23:13 +02:00
parent d81e1caa71
commit b097be17ef
34 changed files with 7 additions and 751 deletions

View File

@@ -90,19 +90,15 @@ initialize(void) {
result = isc_entropy_create(dns_g_mctx, &ectx);
if (result != ISC_R_SUCCESS)
goto cleanup_db;
result = isc_hash_create(dns_g_mctx, NULL, DNS_NAME_MAXWIRE);
if (result != ISC_R_SUCCESS)
goto cleanup_ectx;
result = dst_lib_init(dns_g_mctx, ectx, 0);
if (result != ISC_R_SUCCESS)
goto cleanup_hash;
goto cleanup_ectx;
result = isc_mutex_init(&reflock);
if (result != ISC_R_SUCCESS)
goto cleanup_dst;
isc_hash_init();
isc_entropy_detach(&ectx);
initialize_done = ISC_TRUE;
@@ -113,8 +109,6 @@ initialize(void) {
cleanup_ectx:
if (ectx != NULL)
isc_entropy_detach(&ectx);
cleanup_hash:
isc_hash_destroy();
cleanup_db:
if (dbimp != NULL)
dns_ecdb_unregister(&dbimp);
@@ -160,8 +154,6 @@ dns_lib_shutdown(void) {
dst_lib_destroy();
if (isc_hashctx != NULL)
isc_hash_destroy();
if (dbimp != NULL)
dns_ecdb_unregister(&dbimp);
if (dns_g_mctx != NULL)