Delete deprecated CreateTimeControllerBasedCallFactory
Bug: webrtc:15574
Change-Id: Icd7479f1d7cb3db76662b9e3e65e2d87ff249bef
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/326240
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Auto-Submit: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41305}
diff --git a/api/BUILD.gn b/api/BUILD.gn
index 8cd0f02..dd54224 100644
--- a/api/BUILD.gn
+++ b/api/BUILD.gn
@@ -1396,7 +1396,6 @@
]
deps = [
- ":callfactory_api",
":enable_media_with_defaults",
":libjingle_peerconnection_api",
":time_controller",
diff --git a/api/test/create_time_controller.cc b/api/test/create_time_controller.cc
index f26d73a..7523e05 100644
--- a/api/test/create_time_controller.cc
+++ b/api/test/create_time_controller.cc
@@ -38,26 +38,6 @@
Timestamp::Seconds(10000));
}
-std::unique_ptr<CallFactoryInterface> CreateTimeControllerBasedCallFactory(
- TimeController* time_controller) {
- class TimeControllerBasedCallFactory : public CallFactoryInterface {
- public:
- explicit TimeControllerBasedCallFactory(TimeController* time_controller)
- : time_controller_(time_controller) {}
- std::unique_ptr<Call> CreateCall(const CallConfig& config) override {
- RtpTransportConfig transportConfig = config.ExtractTransportConfig();
-
- return Call::Create(config, time_controller_->GetClock(),
- config.rtp_transport_controller_send_factory->Create(
- transportConfig, time_controller_->GetClock()));
- }
-
- private:
- TimeController* time_controller_;
- };
- return std::make_unique<TimeControllerBasedCallFactory>(time_controller);
-}
-
void EnableMediaWithDefaultsAndTimeController(
TimeController& time_controller,
PeerConnectionFactoryDependencies& deps) {
diff --git a/api/test/create_time_controller.h b/api/test/create_time_controller.h
index 9d0e7dd..c8257da 100644
--- a/api/test/create_time_controller.h
+++ b/api/test/create_time_controller.h
@@ -12,7 +12,6 @@
#include <memory>
-#include "api/call/call_factory_interface.h"
#include "api/peer_connection_interface.h"
#include "api/test/time_controller.h"
@@ -25,11 +24,6 @@
// Creates a time controller that runs in simulated time.
std::unique_ptr<TimeController> CreateSimulatedTimeController();
-// This is creates a call factory that creates Call instances that are backed by
-// a time controller.
-[[deprecated("bugs.webrtc.org/15574")]] std::unique_ptr<CallFactoryInterface>
-CreateTimeControllerBasedCallFactory(TimeController* time_controller);
-
// Adjusts media `deps` to use clock `time_controller` provides, fills media
// related dependencies, and enables media support for a PeerConnectionFactory
// created from `deps`.