瀏覽代碼

Removed deperecated methods

Paul-Louis Ageneau 2 年之前
父節點
當前提交
50e1156618
共有 4 個文件被更改,包括 0 次插入25 次删除
  1. 0 4
      include/rtc/rtcpsrreporter.hpp
  2. 0 9
      include/rtc/rtppacketizationconfig.hpp
  3. 0 4
      src/rtcpsrreporter.cpp
  4. 0 8
      src/rtppacketizationconfig.cpp

+ 0 - 4
include/rtc/rtcpsrreporter.hpp

@@ -33,10 +33,6 @@ public:
 	uint32_t lastReportedTimestamp() const;
 	uint32_t lastReportedTimestamp() const;
 	void setNeedsToReport();
 	void setNeedsToReport();
 
 
-	// deprecated, do not call
-	[[deprecated]] void startRecording();
-	[[deprecated]] uint32_t previousReportedTimestamp() const { return lastReportedTimestamp(); }
-
 private:
 private:
 	uint32_t mPacketCount = 0;
 	uint32_t mPacketCount = 0;
 	uint32_t mPayloadOctets = 0;
 	uint32_t mPayloadOctets = 0;

+ 0 - 9
include/rtc/rtppacketizationconfig.hpp

@@ -82,15 +82,6 @@ public:
 	/// Convert seconds to timestamp
 	/// Convert seconds to timestamp
 	/// @param seconds Number of seconds
 	/// @param seconds Number of seconds
 	uint32_t secondsToTimestamp(double seconds);
 	uint32_t secondsToTimestamp(double seconds);
-
-	// deprecated, do not use
-	double startTime = 0.;
-	enum class EpochStart : uint64_t {
-		T1970 = 2208988800, // number of seconds between 1970 and 1900
-		T1900 = 0
-	};
-	[[deprecated]] void setStartTime(double startTime, EpochStart epochStart,
-	                                 optional<uint32_t> startTimestamp = std::nullopt);
 };
 };
 
 
 } // namespace rtc
 } // namespace rtc

+ 0 - 4
src/rtcpsrreporter.cpp

@@ -83,10 +83,6 @@ void RtcpSrReporter::setNeedsToReport() {
 	mNeedsToReport = true;
 	mNeedsToReport = true;
 }
 }
 
 
-void RtcpSrReporter::startRecording() {
-	// Dummy
-}
-
 uint32_t RtcpSrReporter::lastReportedTimestamp() const {
 uint32_t RtcpSrReporter::lastReportedTimestamp() const {
 	return mLastReportedTimestamp;
 	return mLastReportedTimestamp;
 }
 }

+ 0 - 8
src/rtppacketizationconfig.cpp

@@ -50,14 +50,6 @@ uint32_t RtpPacketizationConfig::secondsToTimestamp(double seconds) {
 	return RtpPacketizationConfig::getTimestampFromSeconds(seconds, clockRate);
 	return RtpPacketizationConfig::getTimestampFromSeconds(seconds, clockRate);
 }
 }
 
 
-void RtpPacketizationConfig::setStartTime(double startTime, EpochStart epochStart,
-                                          optional<uint32_t> startTimestamp) {
-	// Deprecated dummy function
-	this->startTime = startTime + double(static_cast<uint64_t>(epochStart));
-	if (startTimestamp.has_value())
-		this->timestamp = this->startTimestamp = startTimestamp.value();
-}
-
 } // namespace rtc
 } // namespace rtc
 
 
 #endif /* RTC_ENABLE_MEDIA */
 #endif /* RTC_ENABLE_MEDIA */