1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Remove unused code

This commit is contained in:
winlin 2020-05-06 15:13:18 +08:00
parent 38d6d5b077
commit 1b08fb6b6e
2 changed files with 0 additions and 13 deletions

View file

@ -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;
}