Skip to content

Commit 0146306

Browse files
authored
worker: cleanup (#1495)
- Remove unused include statements - Const correctness - Remove protected virtual destructor (to prevent undefined behaviour)
1 parent 13a7804 commit 0146306

File tree

15 files changed

+10
-17
lines changed

15 files changed

+10
-17
lines changed

worker/include/Channel/ChannelSocket.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include "Channel/ChannelNotification.hpp"
66
#include "Channel/ChannelRequest.hpp"
77
#include "handles/UnixStreamSocketHandle.hpp"
8-
#include <string>
98

109
namespace Channel
1110
{

worker/include/RTC/ActiveSpeakerObserver.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include "RTC/Shared.hpp"
66
#include "handles/TimerHandle.hpp"
77
#include <absl/container/flat_hash_map.h>
8-
#include <utility>
98
#include <vector>
109

1110
// Implementation of Dominant Speaker Identification for Multipoint

worker/include/RTC/Consumer.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@
66
#include "Channel/ChannelSocket.hpp"
77
#include "FBS/consumer.h"
88
#include "RTC/RTCP/CompoundPacket.hpp"
9-
#include "RTC/RTCP/FeedbackPs.hpp"
10-
#include "RTC/RTCP/FeedbackPsFir.hpp"
11-
#include "RTC/RTCP/FeedbackPsPli.hpp"
129
#include "RTC/RTCP/FeedbackRtpNack.hpp"
1310
#include "RTC/RTCP/ReceiverReport.hpp"
1411
#include "RTC/RtpDictionaries.hpp"
1512
#include "RTC/RtpHeaderExtensionIds.hpp"
1613
#include "RTC/RtpPacket.hpp"
17-
#include "RTC/RtpStream.hpp"
1814
#include "RTC/RtpStreamRecv.hpp"
1915
#include "RTC/RtpStreamSend.hpp"
2016
#include "RTC/Shared.hpp"

worker/include/RTC/DataProducer.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "common.hpp"
55
#include "Channel/ChannelRequest.hpp"
66
#include "Channel/ChannelSocket.hpp"
7-
#include "RTC/RTCP/Packet.hpp"
87
#include "RTC/SctpDictionaries.hpp"
98
#include "RTC/Shared.hpp"
109
#include <string>

worker/include/RTC/RTCP/Feedback.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#define MS_RTC_RTCP_FEEDBACK_HPP
33

44
#include "common.hpp"
5-
#include "RTC/RTCP/FeedbackItem.hpp"
65
#include "RTC/RTCP/Packet.hpp"
76
#include <absl/container/flat_hash_map.h>
87

worker/include/RTC/RTCP/FeedbackItem.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace RTC
3131
return this->isCorrect;
3232
}
3333

34-
protected:
34+
public:
3535
virtual ~FeedbackItem()
3636
{
3737
delete[] this->raw;

worker/include/RTC/RTCP/FeedbackPs.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include "common.hpp"
55
#include "RTC/RTCP/Feedback.hpp"
6+
#include "RTC/RTCP/FeedbackItem.hpp"
67
#include <vector>
78

89
namespace RTC

worker/include/RTC/RTCP/FeedbackRtp.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include "common.hpp"
55
#include "RTC/RTCP/Feedback.hpp"
6+
#include "RTC/RTCP/FeedbackItem.hpp"
67
#include <vector>
78

89
namespace RTC

worker/include/RTC/Router.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#define MS_RTC_ROUTER_HPP
33

44
#include "common.hpp"
5-
#include "Channel/ChannelNotification.hpp"
65
#include "Channel/ChannelRequest.hpp"
76
#include "RTC/Consumer.hpp"
87
#include "RTC/DataConsumer.hpp"

worker/include/RTC/RtpDictionaries.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ namespace RTC
159159
flatbuffers::FlatBufferBuilder& builder) const;
160160

161161
private:
162-
void CheckCodec();
162+
void CheckCodec() const;
163163

164164
public:
165165
RtpCodecMimeType mimeType;

0 commit comments

Comments
 (0)