Remove unused isc_log_get() function

This commit is contained in:
Ondřej Surý 2020-01-08 09:20:22 +01:00
parent 91e1981988
commit 17deac8b8e
3 changed files with 0 additions and 34 deletions

View file

@ -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.

View file

@ -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;

View file

@ -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