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:
kwiberg
2016-06-20 02:39:48 -07:00
committed by Commit bot
parent a7d88d3844
commit 44bf02fba2
2 changed files with 0 additions and 4 deletions

View File

@ -12,7 +12,6 @@
namespace webrtc {
SdpAudioFormat::SdpAudioFormat() = default;
SdpAudioFormat::SdpAudioFormat(const SdpAudioFormat&) = default;
SdpAudioFormat::SdpAudioFormat(SdpAudioFormat&&) = default;

View File

@ -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);