From 4a541f15dd8a21d8d41c296f78b106d7062a528d Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Thu, 17 Dec 2020 00:01:46 +0100 Subject: [PATCH] sdp: remove extra check for attribute type when parsing fingerprint for style consistency. This check is already done outside the method. BUG=None Change-Id: Ie1366fa57417258a301b02503ad76f304f4279a6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/198040 Reviewed-by: Harald Alvestrand Commit-Queue: Philipp Hancke Cr-Commit-Position: refs/heads/master@{#32853} --- pc/webrtc_sdp.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pc/webrtc_sdp.cc b/pc/webrtc_sdp.cc index 14eb0df922..edd8db6a96 100644 --- a/pc/webrtc_sdp.cc +++ b/pc/webrtc_sdp.cc @@ -2273,12 +2273,6 @@ static bool ParseFingerprintAttribute( const std::string& line, std::unique_ptr* fingerprint, SdpParseError* error) { - if (!IsLineType(line, kLineTypeAttributes) || - !HasAttribute(line, kAttributeFingerprint)) { - return ParseFailedExpectLine(line, 0, kLineTypeAttributes, - kAttributeFingerprint, error); - } - std::vector fields; rtc::split(line.substr(kLinePrefixLength), kSdpDelimiterSpaceChar, &fields); const size_t expected_fields = 2;