]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove unused isc_log_get() function
authorOndřej Surý <ondrej@isc.org>
Wed, 8 Jan 2020 08:20:22 +0000 (09:20 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 8 Jan 2020 10:53:04 +0000 (11:53 +0100)
lib/isc/include/isc/log.h
lib/isc/log.c
lib/isc/win32/libisc.def.in

index 2251a42837939649d3dd2e389a0f564d5f10e29d..72891e9d6105cfefc0361f6dc749699378a35f2b 100644 (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.
index fe560b5adff7f39f241fbf4b9aaabdaf39f0bd74..cb6238562d257286bc1d370304cc8b180771b44b 100644 (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;
index 129f84b25388dbe61f76617d4a95f7fee2a4bdcf..fa20fe059d7fc336efbc80e0667d559bdecacac8 100644 (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