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:
@ -16,7 +16,6 @@
|
||||
#include <limits>
|
||||
|
||||
#include "rtc_base/checks.h"
|
||||
#include "rtc_base/constructor_magic.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
@ -35,6 +34,10 @@ class Random {
|
||||
// See also discussion here: https://codereview.webrtc.org/1623543002/
|
||||
explicit Random(uint64_t seed);
|
||||
|
||||
Random() = delete;
|
||||
Random(const Random&) = delete;
|
||||
Random& operator=(const Random&) = delete;
|
||||
|
||||
// Return pseudo-random integer of the specified type.
|
||||
// We need to limit the size to 32 bits to keep the output close to uniform.
|
||||
template <typename T>
|
||||
@ -73,8 +76,6 @@ class Random {
|
||||
}
|
||||
|
||||
uint64_t state_;
|
||||
|
||||
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(Random);
|
||||
};
|
||||
|
||||
// Return pseudo-random number in the interval [0.0, 1.0).
|
||||
|
||||
Reference in New Issue
Block a user