提交 e3b241af authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

C++: Remove useless empty destructors

上级 4f4bb5dd
......@@ -33,7 +33,6 @@ namespace RTC { namespace RTCP
// Locally generated Report. Holds the data internally.
ReceiverReport();
~ReceiverReport();
void Dump();
size_t Serialize(uint8_t* buffer);
......@@ -92,6 +91,22 @@ namespace RTC { namespace RTCP
/* Inline instance methods. */
inline
ReceiverReport::ReceiverReport()
{
this->header = reinterpret_cast<Header*>(this->raw);
}
inline
ReceiverReport::ReceiverReport(Header* header) :
header(header)
{}
inline
ReceiverReport::ReceiverReport(ReceiverReport* report) :
header(report->header)
{}
inline
size_t ReceiverReport::GetSize()
{
......@@ -200,29 +215,6 @@ namespace RTC { namespace RTCP
this->header->dlsr = (uint32_t)htonl(dlsr);
}
/* Inline instance methods. */
inline
ReceiverReport::ReceiverReport()
{
this->header = reinterpret_cast<Header*>(this->raw);
}
inline
ReceiverReport::ReceiverReport(Header* header) :
header(header)
{}
inline
ReceiverReport::ReceiverReport(ReceiverReport* report) :
header(report->header)
{}
inline
ReceiverReport::~ReceiverReport()
{
}
inline
ReceiverReportPacket::ReceiverReportPacket()
: Packet(Type::RR)
......
......@@ -31,7 +31,6 @@ namespace RTC { namespace RTCP
// Locally generated Report. Holds the data internally.
SenderReport();
~SenderReport();
void Dump();
size_t Serialize(uint8_t* buffer);
......@@ -100,11 +99,6 @@ namespace RTC { namespace RTCP
header(report->header)
{}
inline
SenderReport::~SenderReport()
{
}
inline
size_t SenderReport::GetSize()
{
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论