From e58011d0b12b490acaf7b65f7462a119ca8d6410 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 26 Apr 2014 18:56:02 +0200 Subject: [PATCH 1/1] Do not store the UDP pacing rate; we do not use it after the constructor. --- udpstream.cpp | 3 +-- udpstream.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/udpstream.cpp b/udpstream.cpp index fc00356..1e79494 100644 --- a/udpstream.cpp +++ b/udpstream.cpp @@ -10,8 +10,7 @@ #endif UDPStream::UDPStream(const sockaddr_in6 &dst, uint32_t pacing_rate) - : dst(dst), - pacing_rate(pacing_rate) + : dst(dst) { sock = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); if (sock == -1) { diff --git a/udpstream.h b/udpstream.h index 271764e..ebc8ebc 100644 --- a/udpstream.h +++ b/udpstream.h @@ -26,7 +26,6 @@ private: sockaddr_in6 dst; int sock; - uint32_t pacing_rate; }; #endif // !defined(_UDPSTREAM_H) -- 2.39.2