]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Deprecate <isc/deprecated.h>
authorTony Finch <fanf@isc.org>
Fri, 16 Dec 2022 11:31:08 +0000 (11:31 +0000)
committerTony Finch <dot@dotat.at>
Wed, 15 Feb 2023 15:36:20 +0000 (15:36 +0000)
We refactor more freely these days.

CHANGES
lib/isc/Makefile.am
lib/isc/include/isc/deprecated.h [deleted file]
lib/isc/include/isc/util.h

diff --git a/CHANGES b/CHANGES
index b673261f5528fc288193bf753847f66cf562f0f7..270f9c7cb08ccdce9d868bdd8481ec5f1bc70989 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+6100.  [cleanup]       Deprecate <isc/deprecated.h>, because obsolete
+                       functions are now deleted instead of marked with
+                       an attribute. [GL !7466]
+
 6099.  [performance]   Change the internal read-write lock to modified C-RW-WP
                        algorithm that is more reader-writer fair and has better
                        performance for our workloads. [GL #1609]
index b532587cf2d439ae7c6b3841c3f7a390a7ccfe30..8bc44fc864c108e848f4837a04cf71a30b5b5111 100644 (file)
@@ -21,7 +21,6 @@ libisc_la_HEADERS =                   \
        include/isc/condition.h         \
        include/isc/counter.h           \
        include/isc/crc64.h             \
-       include/isc/deprecated.h        \
        include/isc/dir.h               \
        include/isc/dnsstream.h         \
        include/isc/endian.h            \
diff --git a/lib/isc/include/isc/deprecated.h b/lib/isc/include/isc/deprecated.h
deleted file mode 100644 (file)
index c83508d..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
- *
- * SPDX-License-Identifier: MPL-2.0
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, you can obtain one at https://mozilla.org/MPL/2.0/.
- *
- * See the COPYRIGHT file distributed with this work for additional
- * information regarding copyright ownership.
- */
-
-#pragma once
-
-#if (__GNUC__ + 0) > 3
-#define ISC_DEPRECATED __attribute__((deprecated))
-#else                 /* if (__GNUC__ + 0) > 3 */
-#define ISC_DEPRECATED /* none */
-#endif                /* __GNUC__ > 3*/
index 35d905015879bed145fd25fba6f57803ea65c76d..65835920b66edec10a58de7b19ff05dbc06cc531 100644 (file)
@@ -387,11 +387,6 @@ mock_assert(const int result, const char *const expression,
 #define ISC_ALIGN(x, a) (((x) + (a)-1) & ~((uintmax_t)(a)-1))
 #endif /* ifdef __GNUC__ */
 
-/*%
- * Misc
- */
-#include <isc/deprecated.h>
-
 /*%
  * Swap
  */