[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 7/7] util/uri: Remove unused macros ISA_RESERVED() and ISA_GEN_DEL
From: |
Thomas Huth |
Subject: |
[PULL 7/7] util/uri: Remove unused macros ISA_RESERVED() and ISA_GEN_DELIM() |
Date: |
Wed, 24 Jan 2024 11:42:31 +0100 |
They are not used anywhere, so there's no need to keep them around.
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: "Daniel P. Berrangé" <berrange@redhat.com>
Message-ID: <20240123182247.432642-5-thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
util/uri.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/util/uri.c b/util/uri.c
index 350835b03f..573174bf47 100644
--- a/util/uri.c
+++ b/util/uri.c
@@ -163,19 +163,6 @@ static void uri_clean(URI *uri);
((*(p) == '+')) || ((*(p) == ',')) || ((*(p) == ';')) ||
\
((*(p) == '=')) || ((*(p) == '\'')))
-/*
- * gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"
- */
-#define ISA_GEN_DELIM(p)
\
- (((*(p) == ':')) || ((*(p) == '/')) || ((*(p) == '?')) ||
\
- ((*(p) == '#')) || ((*(p) == '[')) || ((*(p) == ']')) ||
\
- ((*(p) == '@')))
-
-/*
- * reserved = gen-delims / sub-delims
- */
-#define ISA_RESERVED(p) (ISA_GEN_DELIM(p) || (ISA_SUB_DELIM(p)))
-
/*
* unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
*/
--
2.43.0
- [PULL 0/7] Test timeout fixes and URI code clean up, Thomas Huth, 2024/01/24
- [PULL 1/7] tests/qtest: Bump timeout of the boot-serial-test to 360 seconds, Thomas Huth, 2024/01/24
- [PULL 2/7] tests/unit/test-iov: Fix timeout problem on NetBSD and OpenBSD, Thomas Huth, 2024/01/24
- [PULL 4/7] util/uri: Remove uri_string_unescape(), Thomas Huth, 2024/01/24
- [PULL 3/7] tests/qtest: Bump timeouts of boot_sector_test()-based tests to 610 seconds, Thomas Huth, 2024/01/24
- [PULL 6/7] util/uri: Remove the uri_string_escape() function, Thomas Huth, 2024/01/24
- [PULL 5/7] util/uri: Remove unused functions uri_resolve() and uri_resolve_relative(), Thomas Huth, 2024/01/24
- [PULL 7/7] util/uri: Remove unused macros ISA_RESERVED() and ISA_GEN_DELIM(),
Thomas Huth <=
- Re: [PULL 0/7] Test timeout fixes and URI code clean up, Peter Maydell, 2024/01/25