util/rfc1738: remove unused versions of rfc1738_escape
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 16 Feb 2018 22:23:44 +0000 (11:23 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 22 Feb 2018 00:04:18 +0000 (01:04 +0100)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/rfc1738.c
lib/util/samba_util.h

index 4e4c6236121fdb8b4c33f1c2c9f1486ade6f7107..4b376ac2c2530f3cde7f4871139d7f2a6b6a1299 100644 (file)
@@ -158,26 +158,6 @@ rfc1738_do_escape(TALLOC_CTX *mem_ctx, const char *url, int encode_reserved)
     return (buf);
 }
 
-/*
- * rfc1738_escape - Returns a buffer that contains the RFC
- * 1738 compliant, escaped version of the given url. (escapes unsafe and % characters)
- */
-char *
-rfc1738_escape(TALLOC_CTX *mem_ctx, const char *url)
-{
-       return rfc1738_do_escape(mem_ctx, url, 0);
-}
-
-/*
- * rfc1738_escape_unescaped - Returns a buffer that contains
- * the RFC 1738 compliant, escaped version of the given url (escapes unsafe chars only)
- */
-char *
-rfc1738_escape_unescaped(TALLOC_CTX *mem_ctx, const char *url)
-{
-       return rfc1738_do_escape(mem_ctx, url, -1);
-}
-
 /*
  * rfc1738_escape_part - Returns a buffer that contains the RFC
  * 1738 compliant, escaped version of the given url segment. (escapes
index f6b3e23abc3884000cb8e9285450157df2183c60..b78252316c80457462a124c13fa45e67772913d1 100644 (file)
@@ -227,22 +227,6 @@ _PUBLIC_ char *hex_encode_talloc(TALLOC_CTX *mem_ctx, const unsigned char *buff_
 **/
 _PUBLIC_ char *rfc1738_unescape(char *buf);
 
-
-/**
- * rfc1738_escape
- * Returns a static buffer that contains the RFC
- * 1738 compliant, escaped version of the given url. (escapes unsafe and % characters)
- **/
-_PUBLIC_ char *rfc1738_escape(TALLOC_CTX *mem_ctx, const char *url);
-
-/**
- * rfc1738_escape_unescaped
- *
- * Returns a static buffer that contains
- * the RFC 1738 compliant, escaped version of the given url (escapes unsafe chars only)
- **/
-_PUBLIC_ char *rfc1738_escape_unescaped(TALLOC_CTX *mem_ctx, const char *url);
-
 /**
  * rfc1738_escape_part 
  * Returns a static buffer that contains the RFC