Remove SdpAudioFormat's default constructor
We didn't really want it; it was only necessary because we wanted to use rtc::Optional<SdpAudioFormat>, and Optional used to require the contained type to be default constructable. But as of May 9th (https://codereview.webrtc.org/1896833004), it no longer does. Review-Url: https://codereview.webrtc.org/2066233002 Cr-Commit-Position: refs/heads/master@{#13211}
This commit is contained in:
@ -12,7 +12,6 @@
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
SdpAudioFormat::SdpAudioFormat() = default;
|
||||
SdpAudioFormat::SdpAudioFormat(const SdpAudioFormat&) = default;
|
||||
SdpAudioFormat::SdpAudioFormat(SdpAudioFormat&&) = default;
|
||||
|
||||
|
||||
@ -23,9 +23,6 @@ namespace webrtc {
|
||||
struct SdpAudioFormat {
|
||||
using Parameters = std::map<std::string, std::string>;
|
||||
|
||||
// TODO(kwiberg): Get rid of the default constructor when rtc::Optional no
|
||||
// longer requires it.
|
||||
SdpAudioFormat();
|
||||
SdpAudioFormat(const SdpAudioFormat&);
|
||||
SdpAudioFormat(SdpAudioFormat&&);
|
||||
SdpAudioFormat(const char* name, int clockrate_hz, int num_channels);
|
||||
|
||||
Reference in New Issue
Block a user