Comment unused variables in implemented functions 4\n
Bug: webrtc:370878648 Change-Id: I32d472174ce4f9f31b829ea89a82a003d333d2b8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/364539 Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Dor Hen <dorhen@meta.com> Cr-Commit-Position: refs/heads/main@{#43279}
This commit is contained in:
parent
6d58a43413
commit
ca07d54192
@ -130,7 +130,8 @@ bool AudioDecoder::HasDecodePlc() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
size_t AudioDecoder::DecodePlc(size_t num_frames, int16_t* decoded) {
|
||||
size_t AudioDecoder::DecodePlc(size_t /* num_frames */,
|
||||
int16_t* /* decoded */) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -142,18 +143,18 @@ int AudioDecoder::ErrorCode() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int AudioDecoder::PacketDuration(const uint8_t* encoded,
|
||||
size_t encoded_len) const {
|
||||
int AudioDecoder::PacketDuration(const uint8_t* /* encoded */,
|
||||
size_t /* encoded_len */) const {
|
||||
return kNotImplemented;
|
||||
}
|
||||
|
||||
int AudioDecoder::PacketDurationRedundant(const uint8_t* encoded,
|
||||
size_t encoded_len) const {
|
||||
int AudioDecoder::PacketDurationRedundant(const uint8_t* /* encoded */,
|
||||
size_t /* encoded_len */) const {
|
||||
return kNotImplemented;
|
||||
}
|
||||
|
||||
bool AudioDecoder::PacketHasFec(const uint8_t* encoded,
|
||||
size_t encoded_len) const {
|
||||
bool AudioDecoder::PacketHasFec(const uint8_t* /* encoded */,
|
||||
size_t /* encoded_len */) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -67,31 +67,32 @@ bool AudioEncoder::GetDtx() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool AudioEncoder::SetApplication(Application application) {
|
||||
bool AudioEncoder::SetApplication(Application /* application */) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void AudioEncoder::SetMaxPlaybackRate(int frequency_hz) {}
|
||||
void AudioEncoder::SetMaxPlaybackRate(int /* frequency_hz */) {}
|
||||
|
||||
void AudioEncoder::SetTargetBitrate(int target_bps) {}
|
||||
void AudioEncoder::SetTargetBitrate(int /* target_bps */) {}
|
||||
|
||||
rtc::ArrayView<std::unique_ptr<AudioEncoder>>
|
||||
AudioEncoder::ReclaimContainedEncoders() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool AudioEncoder::EnableAudioNetworkAdaptor(const std::string& config_string,
|
||||
RtcEventLog* event_log) {
|
||||
bool AudioEncoder::EnableAudioNetworkAdaptor(
|
||||
const std::string& /* config_string */,
|
||||
RtcEventLog* /* event_log */) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void AudioEncoder::DisableAudioNetworkAdaptor() {}
|
||||
|
||||
void AudioEncoder::OnReceivedUplinkPacketLossFraction(
|
||||
float uplink_packet_loss_fraction) {}
|
||||
float /* uplink_packet_loss_fraction */) {}
|
||||
|
||||
void AudioEncoder::OnReceivedUplinkRecoverablePacketLossFraction(
|
||||
float uplink_recoverable_packet_loss_fraction) {
|
||||
float /* uplink_recoverable_packet_loss_fraction */) {
|
||||
RTC_DCHECK_NOTREACHED();
|
||||
}
|
||||
|
||||
@ -100,20 +101,20 @@ void AudioEncoder::OnReceivedTargetAudioBitrate(int target_audio_bitrate_bps) {
|
||||
}
|
||||
|
||||
void AudioEncoder::OnReceivedUplinkBandwidth(
|
||||
int target_audio_bitrate_bps,
|
||||
std::optional<int64_t> bwe_period_ms) {}
|
||||
int /* target_audio_bitrate_bps */,
|
||||
std::optional<int64_t> /* bwe_period_ms */) {}
|
||||
|
||||
void AudioEncoder::OnReceivedUplinkAllocation(BitrateAllocationUpdate update) {
|
||||
OnReceivedUplinkBandwidth(update.target_bitrate.bps(),
|
||||
update.bwe_period.ms());
|
||||
}
|
||||
|
||||
void AudioEncoder::OnReceivedRtt(int rtt_ms) {}
|
||||
void AudioEncoder::OnReceivedRtt(int /* rtt_ms */) {}
|
||||
|
||||
void AudioEncoder::OnReceivedOverhead(size_t overhead_bytes_per_packet) {}
|
||||
void AudioEncoder::OnReceivedOverhead(size_t /* overhead_bytes_per_packet */) {}
|
||||
|
||||
void AudioEncoder::SetReceiverFrameLengthRange(int min_frame_length_ms,
|
||||
int max_frame_length_ms) {}
|
||||
void AudioEncoder::SetReceiverFrameLengthRange(int /* min_frame_length_ms */,
|
||||
int /* max_frame_length_ms */) {}
|
||||
|
||||
ANAStats AudioEncoder::GetANAStats() const {
|
||||
return ANAStats();
|
||||
|
||||
@ -25,7 +25,7 @@ VideoTrackInterface::ContentHint VideoTrackInterface::content_hint() const {
|
||||
return ContentHint::kNone;
|
||||
}
|
||||
|
||||
bool AudioTrackInterface::GetSignalLevel(int* level) {
|
||||
bool AudioTrackInterface::GetSignalLevel(int* /* level */) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -15,8 +15,9 @@
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
void RtpSenderInterface::SetParametersAsync(const RtpParameters& parameters,
|
||||
SetParametersCallback callback) {
|
||||
void RtpSenderInterface::SetParametersAsync(
|
||||
const RtpParameters& /* parameters */,
|
||||
SetParametersCallback /* callback */) {
|
||||
RTC_DCHECK_NOTREACHED() << "Default implementation called";
|
||||
}
|
||||
|
||||
|
||||
@ -54,6 +54,6 @@ VideoBitrateAllocation VideoBitrateAllocator::Allocate(
|
||||
return GetAllocation(parameters.total_bitrate.bps(), parameters.framerate);
|
||||
}
|
||||
|
||||
void VideoBitrateAllocator::SetLegacyConferenceMode(bool enabled) {}
|
||||
void VideoBitrateAllocator::SetLegacyConferenceMode(bool /* enabled */) {}
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
@ -78,7 +78,7 @@ const NV12BufferInterface* VideoFrameBuffer::GetNV12() const {
|
||||
}
|
||||
|
||||
rtc::scoped_refptr<VideoFrameBuffer> VideoFrameBuffer::GetMappedFrameBuffer(
|
||||
rtc::ArrayView<Type> types) {
|
||||
rtc::ArrayView<Type> /* types */) {
|
||||
RTC_CHECK(type() == Type::kNative);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@ -21,14 +21,14 @@
|
||||
namespace webrtc {
|
||||
|
||||
int32_t DecodedImageCallback::Decoded(VideoFrame& decodedImage,
|
||||
int64_t decode_time_ms) {
|
||||
int64_t /* decode_time_ms */) {
|
||||
// The default implementation ignores custom decode time value.
|
||||
return Decoded(decodedImage);
|
||||
}
|
||||
|
||||
void DecodedImageCallback::Decoded(VideoFrame& decodedImage,
|
||||
std::optional<int32_t> decode_time_ms,
|
||||
std::optional<uint8_t> qp) {
|
||||
std::optional<uint8_t> /* qp */) {
|
||||
Decoded(decodedImage, decode_time_ms.value_or(-1));
|
||||
}
|
||||
|
||||
|
||||
@ -310,7 +310,7 @@ bool VideoEncoder::RateControlParameters::operator!=(
|
||||
VideoEncoder::RateControlParameters::~RateControlParameters() = default;
|
||||
|
||||
void VideoEncoder::SetFecControllerOverride(
|
||||
FecControllerOverride* fec_controller_override) {}
|
||||
FecControllerOverride* /* fec_controller_override */) {}
|
||||
|
||||
int32_t VideoEncoder::InitEncode(const VideoCodec* codec_settings,
|
||||
int32_t number_of_cores,
|
||||
@ -335,11 +335,11 @@ int VideoEncoder::InitEncode(const VideoCodec* codec_settings,
|
||||
settings.max_payload_size);
|
||||
}
|
||||
|
||||
void VideoEncoder::OnPacketLossRateUpdate(float packet_loss_rate) {}
|
||||
void VideoEncoder::OnPacketLossRateUpdate(float /* packet_loss_rate */) {}
|
||||
|
||||
void VideoEncoder::OnRttUpdate(int64_t rtt_ms) {}
|
||||
void VideoEncoder::OnRttUpdate(int64_t /* rtt_ms */) {}
|
||||
|
||||
void VideoEncoder::OnLossNotification(
|
||||
const LossNotification& loss_notification) {}
|
||||
const LossNotification& /* loss_notification */) {}
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
@ -33,7 +33,7 @@ PushSincResampler::~PushSincResampler() {}
|
||||
size_t PushSincResampler::Resample(const int16_t* source,
|
||||
size_t source_length,
|
||||
int16_t* destination,
|
||||
size_t destination_capacity) {
|
||||
size_t /* destination_capacity */) {
|
||||
if (!float_buffer_.get())
|
||||
float_buffer_.reset(new float[destination_frames_]);
|
||||
|
||||
|
||||
@ -313,7 +313,7 @@ static void rftbsub_128_C(float* a) {
|
||||
|
||||
} // namespace
|
||||
|
||||
OouraFft::OouraFft(bool sse2_available) {
|
||||
OouraFft::OouraFft([[maybe_unused]] bool sse2_available) {
|
||||
#if defined(WEBRTC_ARCH_X86_FAMILY)
|
||||
use_sse2_ = sse2_available;
|
||||
#else
|
||||
|
||||
@ -73,15 +73,15 @@ class RtcEventIceCandidatePair final : public RtcEvent {
|
||||
uint32_t candidate_pair_id() const { return candidate_pair_id_; }
|
||||
uint32_t transaction_id() const { return transaction_id_; }
|
||||
|
||||
static std::string Encode(rtc::ArrayView<const RtcEvent*> batch) {
|
||||
static std::string Encode(rtc::ArrayView<const RtcEvent*> /* batch */) {
|
||||
// TODO(terelius): Implement
|
||||
return "";
|
||||
}
|
||||
|
||||
static RtcEventLogParseStatus Parse(
|
||||
absl::string_view encoded_bytes,
|
||||
bool batched,
|
||||
std::vector<LoggedIceCandidatePairEvent>& output) {
|
||||
absl::string_view /* encoded_bytes */,
|
||||
bool /* batched */,
|
||||
std::vector<LoggedIceCandidatePairEvent>& /* output */) {
|
||||
// TODO(terelius): Implement
|
||||
return RtcEventLogParseStatus::Error("Not Implemented", __FILE__, __LINE__);
|
||||
}
|
||||
|
||||
@ -118,15 +118,15 @@ class RtcEventIceCandidatePairConfig final : public RtcEvent {
|
||||
return candidate_pair_desc_;
|
||||
}
|
||||
|
||||
static std::string Encode(rtc::ArrayView<const RtcEvent*> batch) {
|
||||
static std::string Encode(rtc::ArrayView<const RtcEvent*> /* batch */) {
|
||||
// TODO(terelius): Implement
|
||||
return "";
|
||||
}
|
||||
|
||||
static RtcEventLogParseStatus Parse(
|
||||
absl::string_view encoded_bytes,
|
||||
bool batched,
|
||||
std::vector<LoggedIceCandidatePairConfig>& output) {
|
||||
absl::string_view /* encoded_bytes */,
|
||||
bool /* batched */,
|
||||
std::vector<LoggedIceCandidatePairConfig>& /* output */) {
|
||||
// TODO(terelius): Implement
|
||||
return RtcEventLogParseStatus::Error("Not Implemented", __FILE__, __LINE__);
|
||||
}
|
||||
|
||||
@ -40,15 +40,15 @@ class RtcEventRtcpPacketIncoming final : public RtcEvent {
|
||||
|
||||
const rtc::Buffer& packet() const { return packet_; }
|
||||
|
||||
static std::string Encode(rtc::ArrayView<const RtcEvent*> batch) {
|
||||
static std::string Encode(rtc::ArrayView<const RtcEvent*> /* batch */) {
|
||||
// TODO(terelius): Implement
|
||||
return "";
|
||||
}
|
||||
|
||||
static RtcEventLogParseStatus Parse(
|
||||
absl::string_view encoded_bytes,
|
||||
bool batched,
|
||||
std::vector<LoggedRtcpPacketIncoming>& output) {
|
||||
absl::string_view /* encoded_bytes */,
|
||||
bool /* batched */,
|
||||
std::vector<LoggedRtcpPacketIncoming>& /* output */) {
|
||||
// TODO(terelius): Implement
|
||||
return RtcEventLogParseStatus::Error("Not Implemented", __FILE__, __LINE__);
|
||||
}
|
||||
|
||||
@ -40,15 +40,15 @@ class RtcEventRtcpPacketOutgoing final : public RtcEvent {
|
||||
|
||||
const rtc::Buffer& packet() const { return packet_; }
|
||||
|
||||
static std::string Encode(rtc::ArrayView<const RtcEvent*> batch) {
|
||||
static std::string Encode(rtc::ArrayView<const RtcEvent*> /* batch */) {
|
||||
// TODO(terelius): Implement
|
||||
return "";
|
||||
}
|
||||
|
||||
static RtcEventLogParseStatus Parse(
|
||||
absl::string_view encoded_bytes,
|
||||
bool batched,
|
||||
std::vector<LoggedRtcpPacketOutgoing>& output) {
|
||||
absl::string_view /* encoded_bytes */,
|
||||
bool /* batched */,
|
||||
std::vector<LoggedRtcpPacketOutgoing>& /* output */) {
|
||||
// TODO(terelius): Implement
|
||||
return RtcEventLogParseStatus::Error("Not Implemented", __FILE__, __LINE__);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user