Remove deprecated RTPPayloadStrategy

Remove deprecated set_use_rtx_payload_mapping_on_restore()
Remove unused headers

BUG=None

Review-Url: https://codereview.webrtc.org/2808743002
Cr-Commit-Position: refs/heads/master@{#17623}
This commit is contained in:
danilchap 2017-04-10 08:45:29 -07:00 committed by Commit bot
parent a1ef71f622
commit ca31f175e1

View File

@ -12,13 +12,10 @@
#define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_PAYLOAD_REGISTRY_H_
#include <map>
#include <memory>
#include <set>
#include "webrtc/api/audio_codecs/audio_format.h"
#include "webrtc/base/criticalsection.h"
#include "webrtc/base/deprecation.h"
#include "webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.h"
#include "webrtc/modules/rtp_rtcp/source/rtp_utility.h"
namespace webrtc {
@ -26,21 +23,10 @@ namespace webrtc {
struct CodecInst;
class VideoCodec;
// TODO(magjed): Remove once external code is updated.
class RTPPayloadStrategy {
public:
static RTPPayloadStrategy* CreateStrategy(bool handling_audio) {
return nullptr;
}
};
class RTPPayloadRegistry {
public:
RTPPayloadRegistry();
~RTPPayloadRegistry();
// TODO(magjed): Remove once external code is updated.
explicit RTPPayloadRegistry(RTPPayloadStrategy* rtp_payload_strategy)
: RTPPayloadRegistry() {}
// TODO(magjed): Split RTPPayloadRegistry into separate Audio and Video class
// and simplify the code. http://crbug/webrtc/6743.
@ -119,8 +105,6 @@ class RTPPayloadRegistry {
return last_received_media_payload_type_;
}
RTC_DEPRECATED void set_use_rtx_payload_mapping_on_restore(bool val) {}
private:
// Prunes the payload type map of the specific payload type, if it exists.
void DeregisterAudioCodecOrRedTypeRegardlessOfPayloadType(