Skip to content

Commit

Permalink
Remove unused GetInputName & GetOutputName function
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinpan1 committed Feb 14, 2024
1 parent 963edc3 commit 1218c75
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
9 changes: 0 additions & 9 deletions examples/chef/common/clusters/media-input/MediaInputManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1218c75

Please sign in to comment.