From 1218c758e12d13e2ae5d7e265edc8718fd7b3f74 Mon Sep 17 00:00:00 2001 From: erwinpan1 Date: Wed, 14 Feb 2024 23:48:59 +0800 Subject: [PATCH] Remove unused GetInputName & GetOutputName function --- .../common/clusters/audio-output/AudioOutputManager.h | 9 --------- .../chef/common/clusters/media-input/MediaInputManager.h | 9 --------- 2 files changed, 18 deletions(-) diff --git a/examples/chef/common/clusters/audio-output/AudioOutputManager.h b/examples/chef/common/clusters/audio-output/AudioOutputManager.h index 4b8430572c1812..8a8f5e791763e2 100644 --- a/examples/chef/common/clusters/audio-output/AudioOutputManager.h +++ b/examples/chef/common/clusters/audio-output/AudioOutputManager.h @@ -32,15 +32,6 @@ class AudioOutputManager : public chip::app::Clusters::AudioOutput::Delegate CHIP_ERROR HandleGetOutputList(chip::app::AttributeValueEncoder & aEncoder) override; bool HandleRenameOutput(const uint8_t & index, const chip::CharSpan & name) override; bool HandleSelectOutput(const uint8_t & index) override; - CHIP_ERROR GetOutputName(uint8_t index, chip::CharSpan & name) - { - if (index < mOutputs.size()) - { - name = chip::CharSpan::fromCharString(mOutputName[index]); - return CHIP_NO_ERROR; - } - return CHIP_ERROR_INVALID_ARGUMENT; - } protected: uint8_t mCurrentOutput = 1; diff --git a/examples/chef/common/clusters/media-input/MediaInputManager.h b/examples/chef/common/clusters/media-input/MediaInputManager.h index 6d1f8126239918..cc66af301aeeb2 100644 --- a/examples/chef/common/clusters/media-input/MediaInputManager.h +++ b/examples/chef/common/clusters/media-input/MediaInputManager.h @@ -35,15 +35,6 @@ class MediaInputManager : public chip::app::Clusters::MediaInput::Delegate bool HandleShowInputStatus() override; bool HandleHideInputStatus() override; bool HandleRenameInput(const uint8_t index, const chip::CharSpan & name) override; - CHIP_ERROR GetInputName(uint8_t index, chip::CharSpan & name) - { - if (index < mInputs.size()) - { - name = chip::CharSpan::fromCharString(mInputName[index]); - return CHIP_NO_ERROR; - } - return CHIP_ERROR_INVALID_ARGUMENT; - } protected: uint8_t mCurrentInput;