Delete macros RTC_DISALLOW_ASSIGN and RTC_DISALLOW_IMPLICIT_CONSTRUCTORS

The former was unused, the latter is replaced with the explicit C++11
deletions. The related RTC_DISALLOW_COPY_AND_ASSIGN is left for now,
it is used in a lot more places.

Bug: None
Change-Id: I49503e7f2b9ff43c6285f8695833479bbc18c380
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/185500
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32224}
This commit is contained in:
Niels Möller
2020-09-29 09:46:21 +02:00
committed by Commit Bot
parent 46be80d349
commit de95329daa
55 changed files with 256 additions and 172 deletions

View File

@ -37,7 +37,6 @@
#include "modules/rtp_rtcp/source/time_util.h"
#include "modules/rtp_rtcp/source/tmmbr_help.h"
#include "rtc_base/checks.h"
#include "rtc_base/constructor_magic.h"
#include "rtc_base/logging.h"
#include "rtc_base/numerics/safe_conversions.h"
#include "rtc_base/trace_event.h"
@ -56,6 +55,10 @@ class PacketContainer : public rtcp::CompoundPacket {
PacketContainer(Transport* transport, RtcEventLog* event_log)
: transport_(transport), event_log_(event_log) {}
PacketContainer() = delete;
PacketContainer(const PacketContainer&) = delete;
PacketContainer& operator=(const PacketContainer&) = delete;
size_t SendPackets(size_t max_payload_length) {
size_t bytes_sent = 0;
Build(max_payload_length, [&](rtc::ArrayView<const uint8_t> packet) {
@ -72,8 +75,6 @@ class PacketContainer : public rtcp::CompoundPacket {
private:
Transport* transport_;
RtcEventLog* const event_log_;
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(PacketContainer);
};
// Helper to put several RTCP packets into lower layer datagram RTCP packet.