Remove deprecated CodecType methods.
These are no longer needed as all clients have been updated to use the new methods that always return a value. BUG=None Review-Url: https://codereview.webrtc.org/3009583002 Cr-Commit-Position: refs/heads/master@{#19559}
This commit is contained in:
parent
d986d76806
commit
1a92d0de49
@ -168,16 +168,6 @@ VideoCodecType PayloadStringToCodecType(const std::string& name) {
|
||||
return kVideoCodecGeneric;
|
||||
}
|
||||
|
||||
// TODO(kthelgason): Remove these methods once upstream projects
|
||||
// have been updated.
|
||||
rtc::Optional<const char*> CodecTypeToPayloadName(VideoCodecType type) {
|
||||
return rtc::Optional<const char*>(CodecTypeToPayloadString(type));
|
||||
}
|
||||
|
||||
rtc::Optional<VideoCodecType> PayloadNameToCodecType(const std::string& name) {
|
||||
return rtc::Optional<VideoCodecType>(PayloadStringToCodecType(name));
|
||||
}
|
||||
|
||||
const uint32_t BitrateAllocation::kMaxBitrateBps =
|
||||
std::numeric_limits<uint32_t>::max();
|
||||
|
||||
|
||||
@ -550,10 +550,6 @@ enum VideoCodecType {
|
||||
// Translates from name of codec to codec type and vice versa.
|
||||
const char* CodecTypeToPayloadString(VideoCodecType type);
|
||||
VideoCodecType PayloadStringToCodecType(const std::string& name);
|
||||
// TODO(kthelgason): Remove these methods once upstream projects
|
||||
// have been updated.
|
||||
rtc::Optional<const char*> CodecTypeToPayloadName(VideoCodecType type);
|
||||
rtc::Optional<VideoCodecType> PayloadNameToCodecType(const std::string& name);
|
||||
|
||||
union VideoCodecUnion {
|
||||
VideoCodecVP8 VP8;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user