Skip to content

Commit 1218c75

Browse files
committedFeb 14, 2024
Remove unused GetInputName & GetOutputName function
1 parent 963edc3 commit 1218c75

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed
 

‎examples/chef/common/clusters/audio-output/AudioOutputManager.h

-9
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@ class AudioOutputManager : public chip::app::Clusters::AudioOutput::Delegate
3232
CHIP_ERROR HandleGetOutputList(chip::app::AttributeValueEncoder & aEncoder) override;
3333
bool HandleRenameOutput(const uint8_t & index, const chip::CharSpan & name) override;
3434
bool HandleSelectOutput(const uint8_t & index) override;
35-
CHIP_ERROR GetOutputName(uint8_t index, chip::CharSpan & name)
36-
{
37-
if (index < mOutputs.size())
38-
{
39-
name = chip::CharSpan::fromCharString(mOutputName[index]);
40-
return CHIP_NO_ERROR;
41-
}
42-
return CHIP_ERROR_INVALID_ARGUMENT;
43-
}
4435

4536
protected:
4637
uint8_t mCurrentOutput = 1;

‎examples/chef/common/clusters/media-input/MediaInputManager.h

-9
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,6 @@ class MediaInputManager : public chip::app::Clusters::MediaInput::Delegate
3535
bool HandleShowInputStatus() override;
3636
bool HandleHideInputStatus() override;
3737
bool HandleRenameInput(const uint8_t index, const chip::CharSpan & name) override;
38-
CHIP_ERROR GetInputName(uint8_t index, chip::CharSpan & name)
39-
{
40-
if (index < mInputs.size())
41-
{
42-
name = chip::CharSpan::fromCharString(mInputName[index]);
43-
return CHIP_NO_ERROR;
44-
}
45-
return CHIP_ERROR_INVALID_ARGUMENT;
46-
}
4738

4839
protected:
4940
uint8_t mCurrentInput;

0 commit comments

Comments
 (0)