commit 4ff9528031a75a07ee94db17c5a8e3eea72025f2
parent 713f5ece389e5109cb667ea87d07e984119ebf4a
Author: Dan Baker <dbaker@mozilla.com>
Date: Mon, 1 Dec 2025 19:59:32 -0700
Bug 2000941 - Vendor libwebrtc from 42036e8ca6
Upstream commit: https://webrtc.googlesource.com/src/+/42036e8ca673486712651f42039a86fd342398bb
Remove deprecated CreateSessionDescription method
Bug: webrtc:442220720
Change-Id: I25224e3dcea1f28375acd530b8286a571b178ed7
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/408943
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45634}
Diffstat:
3 files changed, 2 insertions(+), 25 deletions(-)
diff --git a/third_party/libwebrtc/README.mozilla.last-vendor b/third_party/libwebrtc/README.mozilla.last-vendor
@@ -1,4 +1,4 @@
# ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py --from-local /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc --commit mozpatches libwebrtc
-libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-12-02T02:56:37.611882+00:00.
+libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-12-02T02:59:11.250671+00:00.
# base of lastest vendoring
-794b74e21f
+42036e8ca6
diff --git a/third_party/libwebrtc/api/jsep.h b/third_party/libwebrtc/api/jsep.h
@@ -286,18 +286,6 @@ class RTC_EXPORT SessionDescriptionInterface {
};
// Creates a SessionDescriptionInterface based on the SDP string and the type.
-// Returns null if the sdp string can't be parsed or the type is unsupported.
-// `error` may be null.
-// TODO(https://issues.webrtc.org/360909068): This function is deprecated.
-// Please use the functions below which take an SdpType enum instead. Remove
-// this once it is no longer used.
-[[deprecated("Use version with SdpType argument")]] RTC_EXPORT
- SessionDescriptionInterface*
- CreateSessionDescription(const std::string& type,
- const std::string& sdp,
- SdpParseError* error);
-
-// Creates a SessionDescriptionInterface based on the SDP string and the type.
// Returns null if the SDP string cannot be parsed.
// If using the signature with `error_out`, details of the parsing error may be
// written to `error_out` if it is not null.
diff --git a/third_party/libwebrtc/pc/jsep_session_description.cc b/third_party/libwebrtc/pc/jsep_session_description.cc
@@ -105,17 +105,6 @@ void UpdateConnectionAddress(
}
} // namespace
-SessionDescriptionInterface* CreateSessionDescription(const std::string& type,
- const std::string& sdp,
- SdpParseError* error) {
- std::optional<SdpType> maybe_type = SdpTypeFromString(type);
- if (!maybe_type) {
- return nullptr;
- }
-
- return CreateSessionDescription(*maybe_type, sdp, error).release();
-}
-
std::unique_ptr<SessionDescriptionInterface> CreateSessionDescription(
SdpType type,
const std::string& sdp) {