summaryrefslogtreecommitdiff
path: root/src/feature/control/control_fmt.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-04-08 16:19:09 -0400
committerNick Mathewson <nickm@torproject.org>2019-04-25 14:13:03 -0400
commit95afdb005cce04cfb87df6a75980944173c15ed7 (patch)
tree4604c7c96572b64e0ab0ab027a522ecf4f9d695d /src/feature/control/control_fmt.c
parentd8b3ec865de2738144bd6bbf9f6355662e64eb25 (diff)
downloadtor-95afdb005cce04cfb87df6a75980944173c15ed7.tar.gz
tor-95afdb005cce04cfb87df6a75980944173c15ed7.zip
Use new parser logic for SETCONF/RESETCONF code.
Here we get to throw away a LOT of unused code, since most of the old parsing was redundant with kvline.
Diffstat (limited to 'src/feature/control/control_fmt.c')
-rw-r--r--src/feature/control/control_fmt.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/feature/control/control_fmt.c b/src/feature/control/control_fmt.c
index 71f9d82163..427f4288fc 100644
--- a/src/feature/control/control_fmt.c
+++ b/src/feature/control/control_fmt.c
@@ -342,20 +342,6 @@ get_escaped_string_length(const char *start, size_t in_len_max,
return (int)(cp - start+1);
}
-/** As decode_escaped_string, but does not decode the string: copies the
- * entire thing, including quotation marks. */
-const char *
-extract_escaped_string(const char *start, size_t in_len_max,
- char **out, size_t *out_len)
-{
- int length = get_escaped_string_length(start, in_len_max, NULL);
- if (length<0)
- return NULL;
- *out_len = length;
- *out = tor_strndup(start, *out_len);
- return start+length;
-}
-
/** Given a pointer to a string starting at <b>start</b> containing
* <b>in_len_max</b> characters, decode a string beginning with one double
* quote, containing any number of non-quote characters or characters escaped