[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/5] util/uri: Remove unused macros ISA_RESERVED() and ISA_GEN_DE
From: |
Thomas Huth |
Subject: |
[PATCH 5/5] util/uri: Remove unused macros ISA_RESERVED() and ISA_GEN_DELIM() |
Date: |
Mon, 22 Jan 2024 20:17:53 +0100 |
They are not used anywhere, so there's no need to keep them around.
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 5f5ca79792..2deab91da3 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
- [PATCH 3/5] util/uri: Remove the uri_string_escape() function, (continued)
- [PATCH 3/5] util/uri: Remove the uri_string_escape() function, Thomas Huth, 2024/01/22
- [PATCH 2/5] util/uri: Simplify uri_string_unescape(), Thomas Huth, 2024/01/22
- [PATCH 4/5] util/uri: Remove unused functions uri_resolve() and uri_resolve_relative(), Thomas Huth, 2024/01/22
- [PATCH 5/5] util/uri: Remove unused macros ISA_RESERVED() and ISA_GEN_DELIM(),
Thomas Huth <=
- Re: [PATCH 0/5] util/uri: Simplify the code, remove unused functions, Daniel P . Berrangé, 2024/01/22