Mark unused/deprecated DTMF methods for removal
Bug: webrtc:9426
Change-Id: Ic0937d9d388092376cbaa2084e38de953a25e2dc
Reviewed-on: https://webrtc-review.googlesource.com/84246
Reviewed-by: Seth Hampson <shampson@webrtc.org>
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23671}
diff --git a/api/dtmfsenderinterface.h b/api/dtmfsenderinterface.h
index e61b8ed..ce848a7 100644
--- a/api/dtmfsenderinterface.h
+++ b/api/dtmfsenderinterface.h
@@ -74,7 +74,8 @@
// Returns the track given as argument to the constructor. Only exists for
// backwards compatibilty; now that DtmfSenders are tied to RtpSenders, it's
// no longer relevant.
- virtual const AudioTrackInterface* track() const = 0;
+ // TODO(bugs.webrtc.org/9426): Remove this method.
+ virtual const AudioTrackInterface* track() const { return nullptr; }
// Returns the tones remaining to be played out.
virtual std::string tones() const = 0;
diff --git a/api/peerconnectioninterface.h b/api/peerconnectioninterface.h
index c1ef6f6..cb6b572 100644
--- a/api/peerconnectioninterface.h
+++ b/api/peerconnectioninterface.h
@@ -745,8 +745,11 @@
// This API is no longer part of the standard; instead DtmfSenders are
// obtained from RtpSenders. Which is what the implementation does; it finds
// an RtpSender for |track| and just returns its DtmfSender.
+ // TODO(bugs.webrtc.org/9426): Remove this method.
virtual rtc::scoped_refptr<DtmfSenderInterface> CreateDtmfSender(
- AudioTrackInterface* track) = 0;
+ AudioTrackInterface* track) {
+ return nullptr;
+ }
// TODO(deadbeef): Make these pure virtual once all subclasses implement them.