Delete unused class: JsepSessionDescription
Bug: webrtc:42222470
Change-Id: I483310f47ac007608c5252b6f24f4875897e3b22
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/415860
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45900}
diff --git a/api/jsep_session_description.h b/api/jsep_session_description.h
index 5c764a7..c3f578f 100644
--- a/api/jsep_session_description.h
+++ b/api/jsep_session_description.h
@@ -14,39 +14,6 @@
#ifndef API_JSEP_SESSION_DESCRIPTION_H_
#define API_JSEP_SESSION_DESCRIPTION_H_
-#include <cstddef>
-#include <memory>
-#include <string>
-#include <vector>
-
-#include "absl/strings/string_view.h"
-#include "api/jsep.h"
-
-namespace webrtc {
-
-class SessionDescription;
-
-// Implementation of SessionDescriptionInterface.
-class JsepSessionDescription final : public SessionDescriptionInterface {
- public:
- // TODO: bugs.webrtc.org/442220720 - Remove this constructor and make sure
- // that JsepSessionDescription can only be constructed with a valid
- // SessionDescription object (with the exception of kRollback).
- [[deprecated(
- "JsepSessionDescription needs to be initialized with a valid description "
- "object")]]
- explicit JsepSessionDescription(SdpType type);
- JsepSessionDescription(SdpType type,
- std::unique_ptr<SessionDescription> description,
- absl::string_view session_id,
- absl::string_view session_version,
- std::vector<IceCandidateCollection> candidates = {});
- ~JsepSessionDescription() override;
-
- JsepSessionDescription(const JsepSessionDescription&) = delete;
- JsepSessionDescription& operator=(const JsepSessionDescription&) = delete;
-};
-
-} // namespace webrtc
+#include "api/jsep.h" // IWYU pragma: keep
#endif // API_JSEP_SESSION_DESCRIPTION_H_
diff --git a/pc/jsep_session_description.cc b/pc/jsep_session_description.cc
index fbd8bfa..63b6dfa 100644
--- a/pc/jsep_session_description.cc
+++ b/pc/jsep_session_description.cc
@@ -211,23 +211,6 @@
candidate_collection_.resize(number_of_mediasections());
}
-JsepSessionDescription::JsepSessionDescription(SdpType type)
- : SessionDescriptionInterface(type, nullptr, "", "") {}
-
-JsepSessionDescription::JsepSessionDescription(
- SdpType type,
- std::unique_ptr<SessionDescription> desc,
- absl::string_view session_id,
- absl::string_view session_version,
- std::vector<IceCandidateCollection> candidates)
- : SessionDescriptionInterface(type,
- std::move(desc),
- session_id,
- session_version,
- std::move(candidates)) {}
-
-JsepSessionDescription::~JsepSessionDescription() {}
-
std::unique_ptr<SessionDescriptionInterface>
SessionDescriptionInterface::Clone() const {
RTC_DCHECK_RUN_ON(sequence_checker());