From 1b08fb6b6ec4c3aaf1367f3650c6394fbe499654 Mon Sep 17 00:00:00 2001 From: winlin <winlin@vip.126.com> Date: Wed, 6 May 2020 15:13:18 +0800 Subject: [PATCH] Remove unused code --- trunk/src/app/srs_app_rtc_conn.cpp | 8 -------- trunk/src/app/srs_app_rtc_conn.hpp | 5 ----- 2 files changed, 13 deletions(-) diff --git a/trunk/src/app/srs_app_rtc_conn.cpp b/trunk/src/app/srs_app_rtc_conn.cpp index f83e35fb5..37b4c1bf0 100644 --- a/trunk/src/app/srs_app_rtc_conn.cpp +++ b/trunk/src/app/srs_app_rtc_conn.cpp @@ -63,7 +63,6 @@ using namespace std; #include <srs_app_statistic.hpp> #include <srs_app_pithy_print.hpp> #include <srs_service_st.hpp> -#include <srs_app_janus.hpp> // The RTP payload max size, reserved some paddings for SRTP as such: // kRtpPacketSize = kRtpMaxPayloadSize + paddings @@ -3243,12 +3242,10 @@ srs_error_t SrsUdpMuxSender::on_reload_rtc_server() SrsRtcServer::SrsRtcServer() { timer = new SrsHourGlass(this, 1 * SRS_UTIME_SECONDS); - janus = new SrsJanusServer(this); } SrsRtcServer::~SrsRtcServer() { - srs_freep(janus); srs_freep(timer); if (true) { @@ -3395,11 +3392,6 @@ srs_error_t SrsRtcServer::listen_api() return srs_error_wrap(err, "handle nack"); } - // For Janus style API. - if ((err = janus->listen_api()) != srs_success) { - return srs_error_wrap(err, "janus listen api"); - } - return err; } diff --git a/trunk/src/app/srs_app_rtc_conn.hpp b/trunk/src/app/srs_app_rtc_conn.hpp index 1af1c9a39..c3aab5b46 100644 --- a/trunk/src/app/srs_app_rtc_conn.hpp +++ b/trunk/src/app/srs_app_rtc_conn.hpp @@ -44,9 +44,6 @@ #include <openssl/ssl.h> #include <srtp2/srtp.h> -// For Alibaba Tenfold. -class SrsJanusServer; - class SrsUdpMuxSocket; class SrsConsumer; class SrsStunPacket; @@ -457,8 +454,6 @@ private: private: std::map<std::string, SrsRtcSession*> map_username_session; // key: username(local_ufrag + ":" + remote_ufrag) std::map<std::string, SrsRtcSession*> map_id_session; // key: peerip(ip + ":" + port) -private: - SrsJanusServer* janus; public: SrsRtcServer(); virtual ~SrsRtcServer();