From 6fefe7019629f62e97d2fa71a02318c4633ad234 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 1 Mar 2017 15:34:14 +0100 Subject: [PATCH] stream: remove unused StreamTcpGetStreamSize function --- src/stream-tcp.c | 14 -------------- src/stream-tcp.h | 2 -- 2 files changed, 16 deletions(-) diff --git a/src/stream-tcp.c b/src/stream-tcp.c index 56e7809ada..06e24936be 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -725,20 +725,6 @@ void StreamTcpSetOSPolicy(TcpStream *stream, Packet *p) } -/** - * \brief get the size of a stream - * - * \note this just calculates the diff between isn and last_ack - * and will not consider sequence wrap arounds (streams - * bigger than 4gb). - * - * \retval size stream size - */ -uint32_t StreamTcpGetStreamSize(TcpStream *stream) -{ - return (stream->last_ack - stream->isn - 1); -} - /** * \brief macro to update last_ack only if the new value is higher * diff --git a/src/stream-tcp.h b/src/stream-tcp.h index 86646fbed9..0f0e301e50 100644 --- a/src/stream-tcp.h +++ b/src/stream-tcp.h @@ -203,7 +203,5 @@ void StreamTcpStreamCleanup(TcpStream *stream); /* check if bypass is enabled */ int StreamTcpBypassEnabled(void); -uint32_t StreamTcpGetStreamSize(TcpStream *stream); - #endif /* __STREAM_TCP_H__ */