summaryrefslogtreecommitdiffstats
path: root/ssl/packet_locl.h
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2015-09-17 18:55:19 +0200
committerEmilia Kasper <emilia@openssl.org>2015-09-18 13:04:07 +0200
commit88f84eb25728a7b4c0b9f684198fd541be9eebe3 (patch)
tree2976b897a93bf384a54723dcc124839a58849c6e /ssl/packet_locl.h
parent020d8fc83fe1a94232db1ee1166309e2458a8a18 (diff)
Remove PACKET_back
It's unused, and the same functionality can be achieved with saving a copy of the struct. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/packet_locl.h')
-rw-r--r--ssl/packet_locl.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/ssl/packet_locl.h b/ssl/packet_locl.h
index 7a72f8e658..d44fdef7e1 100644
--- a/ssl/packet_locl.h
+++ b/ssl/packet_locl.h
@@ -399,17 +399,6 @@ __owur static inline int PACKET_strndup(const PACKET *pkt, char **data)
return (*data != NULL);
}
-/* Move the current reading position back |len| bytes */
-__owur static inline int PACKET_back(PACKET *pkt, size_t len)
-{
- if (len > (size_t)(pkt->curr - pkt->start))
- return 0;
-
- pkt->curr -= len;
-
- return 1;
-}
-
/* Move the current reading position forward |len| bytes */
__owur static inline int PACKET_forward(PACKET *pkt, size_t len)
{