From: Steinar H. Gunderson Date: Sat, 26 Apr 2014 16:56:02 +0000 (+0200) Subject: Do not store the UDP pacing rate; we do not use it after the constructor. X-Git-Tag: 1.1.0~8 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=e58011d0b12b490acaf7b65f7462a119ca8d6410 Do not store the UDP pacing rate; we do not use it after the constructor. --- 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)