Comment unused variables in implemented functions 5\n

Bug: webrtc:370878648
Change-Id: I8ac032b5621fd0a75bce11541133579d22f63af3
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/364684
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Dor Hen <dorhen@meta.com>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43280}
This commit is contained in:
Dor Hen 2024-10-22 02:42:09 -07:00 committed by WebRTC LUCI CQ
parent ca07d54192
commit 3f1a04acf9
6 changed files with 53 additions and 51 deletions

View File

@ -69,15 +69,15 @@ class RtcEventRtpPacketIncoming final : public RtcEvent {
size_t header_length() const { return packet_.headers_size(); } size_t header_length() const { return packet_.headers_size(); }
size_t padding_length() const { return packet_.padding_size(); } size_t padding_length() const { return packet_.padding_size(); }
static std::string Encode(rtc::ArrayView<const RtcEvent*> batch) { static std::string Encode(rtc::ArrayView<const RtcEvent*> /* batch */) {
// TODO(terelius): Implement // TODO(terelius): Implement
return ""; return "";
} }
static RtcEventLogParseStatus Parse( static RtcEventLogParseStatus Parse(
absl::string_view encoded_bytes, absl::string_view /* encoded_bytes */,
bool batched, bool /* batched */,
std::map<uint32_t, std::vector<LoggedRtpPacketIncoming>>& output) { std::map<uint32_t, std::vector<LoggedRtpPacketIncoming>>& /* output */) {
// TODO(terelius): Implement // TODO(terelius): Implement
return RtcEventLogParseStatus::Error("Not Implemented", __FILE__, __LINE__); return RtcEventLogParseStatus::Error("Not Implemented", __FILE__, __LINE__);
} }

View File

@ -71,15 +71,15 @@ class RtcEventRtpPacketOutgoing final : public RtcEvent {
size_t padding_length() const { return packet_.padding_size(); } size_t padding_length() const { return packet_.padding_size(); }
int probe_cluster_id() const { return probe_cluster_id_; } int probe_cluster_id() const { return probe_cluster_id_; }
static std::string Encode(rtc::ArrayView<const RtcEvent*> batch) { static std::string Encode(rtc::ArrayView<const RtcEvent*> /* batch */) {
// TODO(terelius): Implement // TODO(terelius): Implement
return ""; return "";
} }
static RtcEventLogParseStatus Parse( static RtcEventLogParseStatus Parse(
absl::string_view encoded_bytes, absl::string_view /* encoded_bytes */,
bool batched, bool /* batched */,
std::map<uint32_t, std::vector<LoggedRtpPacketOutgoing>>& output) { std::map<uint32_t, std::vector<LoggedRtpPacketOutgoing>>& /* output */) {
// TODO(terelius): Implement // TODO(terelius): Implement
return RtcEventLogParseStatus::Error("Not Implemented", __FILE__, __LINE__); return RtcEventLogParseStatus::Error("Not Implemented", __FILE__, __LINE__);
} }

View File

@ -19,7 +19,7 @@ bool AudioDeviceGeneric::BuiltInAECIsAvailable() const {
return false; return false;
} }
int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) { int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool /* enable */) {
RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
return -1; return -1;
} }
@ -29,7 +29,7 @@ bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const {
return false; return false;
} }
int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool enable) { int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool /* enable */) {
RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
return -1; return -1;
} }
@ -39,7 +39,7 @@ bool AudioDeviceGeneric::BuiltInNSIsAvailable() const {
return false; return false;
} }
int32_t AudioDeviceGeneric::EnableBuiltInNS(bool enable) { int32_t AudioDeviceGeneric::EnableBuiltInNS(bool /* enable */) {
RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
return -1; return -1;
} }

View File

@ -13,7 +13,7 @@
namespace webrtc { namespace webrtc {
int32_t AudioDeviceDummy::ActiveAudioLayer( int32_t AudioDeviceDummy::ActiveAudioLayer(
AudioDeviceModule::AudioLayer& audioLayer) const { AudioDeviceModule::AudioLayer& /* audioLayer */) const {
return -1; return -1;
} }
@ -37,37 +37,39 @@ int16_t AudioDeviceDummy::RecordingDevices() {
return -1; return -1;
} }
int32_t AudioDeviceDummy::PlayoutDeviceName(uint16_t index, int32_t AudioDeviceDummy::PlayoutDeviceName(
char name[kAdmMaxDeviceNameSize], uint16_t /* index */,
char guid[kAdmMaxGuidSize]) { char /* name */[kAdmMaxDeviceNameSize],
char /* guid */[kAdmMaxGuidSize]) {
return -1; return -1;
} }
int32_t AudioDeviceDummy::RecordingDeviceName(uint16_t index, int32_t AudioDeviceDummy::RecordingDeviceName(
char name[kAdmMaxDeviceNameSize], uint16_t /* index */,
char guid[kAdmMaxGuidSize]) { char /* name */[kAdmMaxDeviceNameSize],
char /* guid */[kAdmMaxGuidSize]) {
return -1; return -1;
} }
int32_t AudioDeviceDummy::SetPlayoutDevice(uint16_t index) { int32_t AudioDeviceDummy::SetPlayoutDevice(uint16_t /* index */) {
return -1; return -1;
} }
int32_t AudioDeviceDummy::SetPlayoutDevice( int32_t AudioDeviceDummy::SetPlayoutDevice(
AudioDeviceModule::WindowsDeviceType device) { AudioDeviceModule::WindowsDeviceType /* device */) {
return -1; return -1;
} }
int32_t AudioDeviceDummy::SetRecordingDevice(uint16_t index) { int32_t AudioDeviceDummy::SetRecordingDevice(uint16_t /* index */) {
return -1; return -1;
} }
int32_t AudioDeviceDummy::SetRecordingDevice( int32_t AudioDeviceDummy::SetRecordingDevice(
AudioDeviceModule::WindowsDeviceType device) { AudioDeviceModule::WindowsDeviceType /* device */) {
return -1; return -1;
} }
int32_t AudioDeviceDummy::PlayoutIsAvailable(bool& available) { int32_t AudioDeviceDummy::PlayoutIsAvailable(bool& /* available */) {
return -1; return -1;
} }
@ -79,7 +81,7 @@ bool AudioDeviceDummy::PlayoutIsInitialized() const {
return false; return false;
} }
int32_t AudioDeviceDummy::RecordingIsAvailable(bool& available) { int32_t AudioDeviceDummy::RecordingIsAvailable(bool& /* available */) {
return -1; return -1;
} }
@ -131,27 +133,27 @@ bool AudioDeviceDummy::MicrophoneIsInitialized() const {
return false; return false;
} }
int32_t AudioDeviceDummy::SpeakerVolumeIsAvailable(bool& available) { int32_t AudioDeviceDummy::SpeakerVolumeIsAvailable(bool& /* available */) {
return -1; return -1;
} }
int32_t AudioDeviceDummy::SetSpeakerVolume(uint32_t volume) { int32_t AudioDeviceDummy::SetSpeakerVolume(uint32_t /* volume */) {
return -1; return -1;
} }
int32_t AudioDeviceDummy::SpeakerVolume(uint32_t& volume) const { int32_t AudioDeviceDummy::SpeakerVolume(uint32_t& /* volume */) const {
return -1; return -1;
} }
int32_t AudioDeviceDummy::MaxSpeakerVolume(uint32_t& maxVolume) const { int32_t AudioDeviceDummy::MaxSpeakerVolume(uint32_t& /* maxVolume */) const {
return -1; return -1;
} }
int32_t AudioDeviceDummy::MinSpeakerVolume(uint32_t& minVolume) const { int32_t AudioDeviceDummy::MinSpeakerVolume(uint32_t& /* minVolume */) const {
return -1; return -1;
} }
int32_t AudioDeviceDummy::MicrophoneVolumeIsAvailable(bool& available) { int32_t AudioDeviceDummy::MicrophoneVolumeIsAvailable(bool& /* available */) {
return -1; return -1;
} }

View File

@ -50,7 +50,7 @@ FileAudioDevice::FileAudioDevice(absl::string_view inputFilename,
FileAudioDevice::~FileAudioDevice() {} FileAudioDevice::~FileAudioDevice() {}
int32_t FileAudioDevice::ActiveAudioLayer( int32_t FileAudioDevice::ActiveAudioLayer(
AudioDeviceModule::AudioLayer& audioLayer) const { AudioDeviceModule::AudioLayer& /* audioLayer */) const {
return -1; return -1;
} }
@ -113,7 +113,7 @@ int32_t FileAudioDevice::SetPlayoutDevice(uint16_t index) {
} }
int32_t FileAudioDevice::SetPlayoutDevice( int32_t FileAudioDevice::SetPlayoutDevice(
AudioDeviceModule::WindowsDeviceType device) { AudioDeviceModule::WindowsDeviceType /* device */) {
return -1; return -1;
} }
@ -126,7 +126,7 @@ int32_t FileAudioDevice::SetRecordingDevice(uint16_t index) {
} }
int32_t FileAudioDevice::SetRecordingDevice( int32_t FileAudioDevice::SetRecordingDevice(
AudioDeviceModule::WindowsDeviceType device) { AudioDeviceModule::WindowsDeviceType /* device */) {
return -1; return -1;
} }
@ -332,67 +332,67 @@ bool FileAudioDevice::MicrophoneIsInitialized() const {
return true; return true;
} }
int32_t FileAudioDevice::SpeakerVolumeIsAvailable(bool& available) { int32_t FileAudioDevice::SpeakerVolumeIsAvailable(bool& /* available */) {
return -1; return -1;
} }
int32_t FileAudioDevice::SetSpeakerVolume(uint32_t volume) { int32_t FileAudioDevice::SetSpeakerVolume(uint32_t /* volume */) {
return -1; return -1;
} }
int32_t FileAudioDevice::SpeakerVolume(uint32_t& volume) const { int32_t FileAudioDevice::SpeakerVolume(uint32_t& /* volume */) const {
return -1; return -1;
} }
int32_t FileAudioDevice::MaxSpeakerVolume(uint32_t& maxVolume) const { int32_t FileAudioDevice::MaxSpeakerVolume(uint32_t& /* maxVolume */) const {
return -1; return -1;
} }
int32_t FileAudioDevice::MinSpeakerVolume(uint32_t& minVolume) const { int32_t FileAudioDevice::MinSpeakerVolume(uint32_t& /* minVolume */) const {
return -1; return -1;
} }
int32_t FileAudioDevice::MicrophoneVolumeIsAvailable(bool& available) { int32_t FileAudioDevice::MicrophoneVolumeIsAvailable(bool& /* available */) {
return -1; return -1;
} }
int32_t FileAudioDevice::SetMicrophoneVolume(uint32_t volume) { int32_t FileAudioDevice::SetMicrophoneVolume(uint32_t /* volume */) {
return -1; return -1;
} }
int32_t FileAudioDevice::MicrophoneVolume(uint32_t& volume) const { int32_t FileAudioDevice::MicrophoneVolume(uint32_t& /* volume */) const {
return -1; return -1;
} }
int32_t FileAudioDevice::MaxMicrophoneVolume(uint32_t& maxVolume) const { int32_t FileAudioDevice::MaxMicrophoneVolume(uint32_t& /* maxVolume */) const {
return -1; return -1;
} }
int32_t FileAudioDevice::MinMicrophoneVolume(uint32_t& minVolume) const { int32_t FileAudioDevice::MinMicrophoneVolume(uint32_t& /* minVolume */) const {
return -1; return -1;
} }
int32_t FileAudioDevice::SpeakerMuteIsAvailable(bool& available) { int32_t FileAudioDevice::SpeakerMuteIsAvailable(bool& /* available */) {
return -1; return -1;
} }
int32_t FileAudioDevice::SetSpeakerMute(bool enable) { int32_t FileAudioDevice::SetSpeakerMute(bool /* enable */) {
return -1; return -1;
} }
int32_t FileAudioDevice::SpeakerMute(bool& enabled) const { int32_t FileAudioDevice::SpeakerMute(bool& /* enabled */) const {
return -1; return -1;
} }
int32_t FileAudioDevice::MicrophoneMuteIsAvailable(bool& available) { int32_t FileAudioDevice::MicrophoneMuteIsAvailable(bool& /* available */) {
return -1; return -1;
} }
int32_t FileAudioDevice::SetMicrophoneMute(bool enable) { int32_t FileAudioDevice::SetMicrophoneMute(bool /* enable */) {
return -1; return -1;
} }
int32_t FileAudioDevice::MicrophoneMute(bool& enabled) const { int32_t FileAudioDevice::MicrophoneMute(bool& /* enabled */) const {
return -1; return -1;
} }

View File

@ -40,8 +40,8 @@ FileAudioDevice* FileAudioDeviceFactory::CreateFileAudioDevice() {
} }
void FileAudioDeviceFactory::SetFilenamesToUse( void FileAudioDeviceFactory::SetFilenamesToUse(
absl::string_view inputAudioFilename, [[maybe_unused]] absl::string_view inputAudioFilename,
absl::string_view outputAudioFilename) { [[maybe_unused]] absl::string_view outputAudioFilename) {
#ifdef WEBRTC_DUMMY_FILE_DEVICES #ifdef WEBRTC_DUMMY_FILE_DEVICES
RTC_DCHECK_LT(inputAudioFilename.size(), MAX_FILENAME_LEN); RTC_DCHECK_LT(inputAudioFilename.size(), MAX_FILENAME_LEN);
RTC_DCHECK_LT(outputAudioFilename.size(), MAX_FILENAME_LEN); RTC_DCHECK_LT(outputAudioFilename.size(), MAX_FILENAME_LEN);