diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-02-15 15:33:34 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-15 15:33:34 -0500 |
commit | b3a69074933492080629d45b1c890606aa2bd08a (patch) | |
tree | 53f4929f0c1e19ed7ff9022ac194defe8ce78f25 /src/or/rendservice.c | |
parent | 67749475f56532235602e0c8d1a9a59a68d816c3 (diff) | |
download | tor-b3a69074933492080629d45b1c890606aa2bd08a.tar.gz tor-b3a69074933492080629d45b1c890606aa2bd08a.zip |
Remove a bunch of functions that were never called.
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index cb2f962995..500efaf208 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -1503,27 +1503,6 @@ find_rp_for_intro(const rend_intro_cell_t *intro, return rp; } -/** Remove unnecessary parts from a rend_intro_cell_t - the ciphertext if - * already decrypted, the plaintext too if already parsed - */ - -void -rend_service_compact_intro(rend_intro_cell_t *request) -{ - if (!request) return; - - if ((request->plaintext && request->plaintext_len > 0) || - request->parsed) { - tor_free(request->ciphertext); - request->ciphertext_len = 0; - } - - if (request->parsed) { - tor_free(request->plaintext); - request->plaintext_len = 0; - } -} - /** Free a parsed INTRODUCE1 or INTRODUCE2 cell that was allocated by * rend_service_parse_intro(). */ |