From 140ebc5de20205d39ed241a9c65e67c23d45b627 Mon Sep 17 00:00:00 2001 From: Maxim Sharabayko Date: Wed, 14 Aug 2019 15:57:50 +0200 Subject: [PATCH] [core] Deleted deprecated API func srt_perfmon() --- srtcore/srt.h | 2 -- srtcore/srt_c_api.cpp | 1 - srtcore/udt.h | 1 - 3 files changed, 4 deletions(-) diff --git a/srtcore/srt.h b/srtcore/srt.h index 8d314574b..463708eba 100644 --- a/srtcore/srt.h +++ b/srtcore/srt.h @@ -633,8 +633,6 @@ SRT_API const char* srt_strerror(int code, int errnoval); SRT_API void srt_clearlasterror(void); // performance track -// srt_perfmon is deprecated - use srt_bistats, which provides the same stats plus more. -SRT_API int srt_perfmon(SRTSOCKET u, SRT_TRACEINFO * perf, int clear) SRT_ATR_DEPRECATED; // perfmon with Byte counters for better bitrate estimation. SRT_API int srt_bstats(SRTSOCKET u, SRT_TRACEBSTATS * perf, int clear); // permon with Byte counters and instantaneous stats instead of moving averages for Snd/Rcvbuffer sizes. diff --git a/srtcore/srt_c_api.cpp b/srtcore/srt_c_api.cpp index 155d673a8..a3f175710 100644 --- a/srtcore/srt_c_api.cpp +++ b/srtcore/srt_c_api.cpp @@ -190,7 +190,6 @@ void srt_clearlasterror() UDT::getlasterror().clear(); } -int srt_perfmon(SRTSOCKET u, SRT_TRACEINFO * perf, int clear) { return CUDT::perfmon(u, perf, 0!= clear); } int srt_bstats(SRTSOCKET u, SRT_TRACEBSTATS * perf, int clear) { return CUDT::bstats(u, perf, 0!= clear); } int srt_bistats(SRTSOCKET u, SRT_TRACEBSTATS * perf, int clear, int instantaneous) { return CUDT::bstats(u, perf, 0!= clear, 0!= instantaneous); } diff --git a/srtcore/udt.h b/srtcore/udt.h index dc41e5d09..1aab44623 100644 --- a/srtcore/udt.h +++ b/srtcore/udt.h @@ -380,7 +380,6 @@ UDT_API int epoll_release(int eid); UDT_API ERRORINFO& getlasterror(); UDT_API int getlasterror_code(); UDT_API const char* getlasterror_desc(); -UDT_API int perfmon(UDTSOCKET u, TRACEINFO* perf, bool clear = true) SRT_ATR_DEPRECATED; UDT_API int bstats(UDTSOCKET u, TRACEBSTATS* perf, bool clear = true); UDT_API SRT_SOCKSTATUS getsockstate(UDTSOCKET u);