From 17deac8b8ef070ce44fd21fd0518b7478e2e4695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Wed, 8 Jan 2020 09:20:22 +0100 Subject: [PATCH] Remove unused isc_log_get() function --- lib/isc/include/isc/log.h | 20 -------------------- lib/isc/log.c | 13 ------------- lib/isc/win32/libisc.def.in | 1 - 3 files changed, 34 deletions(-) diff --git a/lib/isc/include/isc/log.h b/lib/isc/include/isc/log.h index 2251a42837..72891e9d61 100644 --- a/lib/isc/include/isc/log.h +++ b/lib/isc/include/isc/log.h @@ -254,21 +254,6 @@ isc_logconfig_create(isc_log_t *lctx, isc_logconfig_t **lcfgp); *\li #ISC_R_NOMEMORY Resource limit: Out of memory */ -isc_logconfig_t * -isc_logconfig_get(isc_log_t *lctx); -/*%< - * Returns a pointer to the configuration currently in use by the log context. - * - * Requires: - *\li lctx is a valid context. - * - * Ensures: - *\li The configuration pointer is non-null. - * - * Returns: - *\li The configuration pointer. - */ - isc_result_t isc_logconfig_use(isc_log_t *lctx, isc_logconfig_t *lcfg); /*%< @@ -316,11 +301,6 @@ isc_logconfig_destroy(isc_logconfig_t **lcfgp); /*%< * Destroy a logging configuration. * - * Notes: - *\li This function cannot be used directly with the return value of - * isc_logconfig_get, because a logging context must always have - * a valid configuration associated with it. - * * Requires: *\li lcfgp is not null and *lcfgp is a valid logging configuration. *\li The logging configuration is not in use by an existing logging context. diff --git a/lib/isc/log.c b/lib/isc/log.c index fe560b5adf..cb6238562d 100644 --- a/lib/isc/log.c +++ b/lib/isc/log.c @@ -393,19 +393,6 @@ isc_logconfig_create(isc_log_t *lctx, isc_logconfig_t **lcfgp) { return (result); } -isc_logconfig_t * -isc_logconfig_get(isc_log_t *lctx) { - REQUIRE(VALID_CONTEXT(lctx)); - - isc_logconfig_t *lcfg = NULL; - LOCK(&lctx->lock); - lcfg = lctx->logconfig; - UNLOCK(&lctx->lock); - - ENSURE(lcfg != NULL); - return (lcfg); -} - isc_result_t isc_logconfig_use(isc_log_t *lctx, isc_logconfig_t *lcfg) { isc_logconfig_t *old_cfg; diff --git a/lib/isc/win32/libisc.def.in b/lib/isc/win32/libisc.def.in index 129f84b253..fa20fe059d 100644 --- a/lib/isc/win32/libisc.def.in +++ b/lib/isc/win32/libisc.def.in @@ -348,7 +348,6 @@ isc_log_write isc_log_write1 isc_logconfig_create isc_logconfig_destroy -isc_logconfig_get isc_logconfig_use isc_logfile_roll isc_md_new