Skip to content

Commit

Permalink
C++: remove unused include directives
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillan committed Jan 10, 2024
1 parent e2e7754 commit 88ab05a
Show file tree
Hide file tree
Showing 39 changed files with 16 additions and 55 deletions.
1 change: 0 additions & 1 deletion worker/src/DepLibUV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include "DepLibUV.hpp"
#include "Logger.hpp"
#include <cstdlib> // std::abort()

/* Static variables. */

Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/ActiveSpeakerObserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "RTC/ActiveSpeakerObserver.hpp"
#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include "Utils.hpp"
#include "RTC/RtpDictionaries.hpp"

namespace RTC
Expand Down
2 changes: 0 additions & 2 deletions worker/src/RTC/AudioLevelObserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
#include "RTC/AudioLevelObserver.hpp"
#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include "Utils.hpp"
#include "RTC/RtpDictionaries.hpp"
#include <cmath> // std::lround()
#include <map>

namespace RTC
{
Expand Down
2 changes: 0 additions & 2 deletions worker/src/RTC/Consumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#include "DepLibUV.hpp"
#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include <iterator> // std::ostream_iterator
#include <sstream> // std::ostringstream

namespace RTC
{
Expand Down
2 changes: 0 additions & 2 deletions worker/src/RTC/DataConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
#include "DepLibUV.hpp"
#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include "Utils.hpp"
#include "RTC/SctpAssociation.hpp"
#include <stdexcept>

namespace RTC
{
Expand Down
2 changes: 0 additions & 2 deletions worker/src/RTC/DataProducer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#include "DepLibUV.hpp"
#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include "Utils.hpp"
#include <stdexcept>
#include <vector>

namespace RTC
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/DirectTransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include "RTC/DirectTransport.hpp"
#include "Logger.hpp"
#include "MediaSoupErrors.hpp"

namespace RTC
{
Expand Down
4 changes: 1 addition & 3 deletions worker/src/RTC/IceServer.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#define MS_CLASS "RTC::IceServer"
// #define MS_LOG_DEV_LEVEL 3

#include <utility>

#include "Logger.hpp"
#include "RTC/IceServer.hpp"
#include "Logger.hpp"

namespace RTC
{
Expand Down
4 changes: 1 addition & 3 deletions worker/src/RTC/PipeConsumer.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#include "FBS/consumer.h"
#define MS_CLASS "RTC::PipeConsumer"
// #define MS_LOG_DEV_LEVEL 3

#include "DepLibUV.hpp"
#include "RTC/PipeConsumer.hpp"
#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include "RTC/Codecs/Tools.hpp"
#include "RTC/PipeConsumer.hpp"

namespace RTC
{
Expand Down
7 changes: 2 additions & 5 deletions worker/src/RTC/Producer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@
#include "MediaSoupErrors.hpp"
#include "Utils.hpp"
#include "RTC/Codecs/Tools.hpp"
#include "RTC/RTCP/FeedbackPs.hpp"
#include "RTC/RTCP/FeedbackRtp.hpp"
#include "RTC/RTCP/Feedback.hpp"
#include "RTC/RTCP/XrReceiverReferenceTime.hpp"
#include <absl/container/inlined_vector.h>
#include <cstring> // std::memcpy()
#include <iterator> // std::ostream_iterator
#include <sstream> // std::ostringstream
#include <cstring> // std::memcpy()

namespace RTC
{
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/RTCP/Feedback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include "RTC/RTCP/Feedback.hpp"
#include "Logger.hpp"
#include "Utils.hpp"
#include "RTC/RTCP/FeedbackPsAfb.hpp"
#include "RTC/RTCP/FeedbackPsFir.hpp"
#include "RTC/RTCP/FeedbackPsLei.hpp"
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/RTCP/FeedbackPsFir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include "RTC/RTCP/FeedbackPsFir.hpp"
#include "Logger.hpp"
#include <cstring>
#include <cstring> // std::memset()

namespace RTC
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/RTCP/FeedbackPsSli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include "RTC/RTCP/FeedbackPsSli.hpp"
#include "Logger.hpp"
#include <cstring>

namespace RTC
{
Expand Down
2 changes: 1 addition & 1 deletion worker/src/RTC/RTCP/FeedbackPsTst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "RTC/RTCP/FeedbackPsTst.hpp"
#include "Logger.hpp"
#include <cstring>
#include <cstring> // std::memcpy

namespace RTC
{
Expand Down
2 changes: 1 addition & 1 deletion worker/src/RTC/RTCP/FeedbackPsVbcm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "RTC/RTCP/FeedbackPsVbcm.hpp"
#include "Logger.hpp"
#include <cstring>
#include <cstring> // std::memcpy

namespace RTC
{
Expand Down
2 changes: 1 addition & 1 deletion worker/src/RTC/RTCP/FeedbackRtpEcn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "RTC/RTCP/FeedbackRtpEcn.hpp"
#include "Logger.hpp"
#include <cstring>
#include <cstring> // std::memcpy

namespace RTC
{
Expand Down
4 changes: 2 additions & 2 deletions worker/src/RTC/RTCP/FeedbackRtpNack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include "RTC/RTCP/FeedbackRtpNack.hpp"
#include "Logger.hpp"
#include <bitset> // std::bitset()
#include <cstring>
#include <bitset> // std::bitset()
#include <cstring> // std::memcpy

namespace RTC
{
Expand Down
2 changes: 1 addition & 1 deletion worker/src/RTC/RTCP/FeedbackRtpTllei.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "RTC/RTCP/FeedbackRtpTllei.hpp"
#include "Logger.hpp"
#include <cstring>
#include <cstring> // std::memcpy

namespace RTC
{
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/RTCP/FeedbackRtpTmmb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "RTC/RTCP/FeedbackRtpTmmb.hpp"
#include "Logger.hpp"
#include "Utils.hpp"
#include <cstring>

namespace RTC
{
Expand Down
3 changes: 1 addition & 2 deletions worker/src/RTC/RTCP/FeedbackRtpTransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
#include "Logger.hpp"
#include "Utils.hpp"
#include "RTC/SeqManager.hpp"
#include <limits> // std::numeric_limits()
#include <sstream>
#include <sstream> // std::ostringstream

namespace RTC
{
Expand Down
2 changes: 1 addition & 1 deletion worker/src/RTC/RTCP/ReceiverReport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "RTC/RTCP/ReceiverReport.hpp"
#include "Logger.hpp"
#include "Utils.hpp"
#include <cstring>
#include <cstring> // std::memcpy

namespace RTC
{
Expand Down
2 changes: 1 addition & 1 deletion worker/src/RTC/RTCP/Sdes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "RTC/RTCP/Sdes.hpp"
#include "Logger.hpp"
#include "Utils.hpp"
#include <cstring>
#include <cstring> // std::memcpy

namespace RTC
{
Expand Down
2 changes: 1 addition & 1 deletion worker/src/RTC/RTCP/SenderReport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "RTC/RTCP/SenderReport.hpp"
#include "Logger.hpp"
#include <cstring>
#include <cstring> // std::memcpy

namespace RTC
{
Expand Down
2 changes: 1 addition & 1 deletion worker/src/RTC/RTCP/XrDelaySinceLastRr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "RTC/RTCP/XrDelaySinceLastRr.hpp"
#include "Logger.hpp"
#include <cstring>
#include <cstring> // std::memcpy

namespace RTC
{
Expand Down
2 changes: 1 addition & 1 deletion worker/src/RTC/RTCP/XrReceiverReferenceTime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "RTC/RTCP/XrReceiverReferenceTime.hpp"
#include "Logger.hpp"
#include <cstring>
#include <cstring> // std::memcpy

namespace RTC
{
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/Router.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#endif
#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include "Utils.hpp"
#include "RTC/ActiveSpeakerObserver.hpp"
#include "RTC/AudioLevelObserver.hpp"
#include "RTC/DirectTransport.hpp"
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/RtpDictionaries/RtcpFeedback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// #define MS_LOG_DEV_LEVEL 3

#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include "RTC/RtpDictionaries.hpp"

namespace RTC
Expand Down
2 changes: 0 additions & 2 deletions worker/src/RTC/RtpDictionaries/RtcpParameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// #define MS_LOG_DEV_LEVEL 3

#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include "Utils.hpp"
#include "RTC/RtpDictionaries.hpp"

namespace RTC
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/RtpDictionaries/RtpCodecParameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include "Utils.hpp"
#include "RTC/RtpDictionaries.hpp"

namespace RTC
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/RtpDictionaries/RtpEncodingParameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include "Utils.hpp"
#include "RTC/RtpDictionaries.hpp"
#include <exception>
#include <regex>
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/RtpDictionaries/RtpHeaderExtensionUri.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// #define MS_LOG_DEV_LEVEL 3

#include "Logger.hpp"
#include "Utils.hpp"
#include "RTC/RtpDictionaries.hpp"

namespace RTC
Expand Down
2 changes: 0 additions & 2 deletions worker/src/RTC/RtpDictionaries/RtpRtxParameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// #define MS_LOG_DEV_LEVEL 3

#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include "Utils.hpp"
#include "RTC/RtpDictionaries.hpp"

namespace RTC
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/RtpProbationGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// #define MS_LOG_DEV_LEVEL 3

#include "RTC/RtpProbationGenerator.hpp"
#include "DepLibUV.hpp"
#include "Logger.hpp"
#include "Utils.hpp"
#include "RTC/RtpDictionaries.hpp"
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/RtpStreamSend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "Logger.hpp"
#include "Utils.hpp"
#include "RTC/RtpDictionaries.hpp"
#include "RTC/SeqManager.hpp"

namespace RTC
{
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/SenderBandwidthEstimator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "RTC/SenderBandwidthEstimator.hpp"
#include "DepLibUV.hpp"
#include "Logger.hpp"
#include <limits>

namespace RTC
{
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/SvcConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "DepLibUV.hpp"
#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include "Utils.hpp"
#include "RTC/Codecs/Tools.hpp"

namespace RTC
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/Transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <libwebrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h> // webrtc::RtpPacketSendInfo
#include <iterator> // std::ostream_iterator
#include <map> // std::multimap
#include <sstream> // std::ostringstream

namespace RTC
{
Expand Down
1 change: 0 additions & 1 deletion worker/src/RTC/TransportCongestionControlClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "RTC/TransportCongestionControlClient.hpp"
#include "DepLibUV.hpp"
#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include <libwebrtc/api/transport/network_types.h> // webrtc::TargetRateConstraints
#include <limits>

Expand Down
1 change: 0 additions & 1 deletion worker/src/lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "RTC/SrtpSession.hpp"
#include <uv.h>
#include <absl/container/flat_hash_map.h>
#include <cerrno>
#include <csignal> // sigaction()
#include <string>

Expand Down

0 comments on commit 88ab05a

Please sign in to comment.