aboutsummaryrefslogtreecommitdiff
path: root/iri.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-10-02 17:20:56 +0000
committerOmar Polo <op@omarpolo.com>2021-10-02 17:20:56 +0000
commitfa0299a26d6e0cc83135a7f46e74710a9d5a8efa (patch)
tree8ad7521f83e6566c1bacd08c5dbee5a00a9c869b /iri.c
parentefe7d180292726775fb3ae5e6af593490a264c60 (diff)
drop now unused trim_req_iri
Diffstat (limited to 'iri.c')
-rw-r--r--iri.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/iri.c b/iri.c
index 1282be8..fd34c2e 100644
--- a/iri.c
+++ b/iri.c
@@ -416,19 +416,6 @@ parse_iri(char *iri, struct iri *ret, const char **err_ret)
}
int
-trim_req_iri(char *iri, const char **err)
-{
- char *i;
-
- if ((i = strstr(iri, "\r\n")) == NULL) {
- *err = "missing CRLF";
- return 0;
- }
- *i = '\0';
- return 1;
-}
-
-int
serialize_iri(struct iri *i, char *buf, size_t len)
{
size_t l = 0;