Skip to content

Commit 6f42e70

Browse files
committed
Remove unused function HandleSetCurrentInput
1 parent 282be70 commit 6f42e70

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

examples/chef/common/clusters/media-input/MediaInputManager.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ uint8_t MediaInputManager::HandleGetCurrentInput()
5454
return mCurrentInput;
5555
}
5656

57-
bool MediaInputManager::HandleSetCurrentInput(const uint8_t index)
58-
{
59-
return HandleSelectInput(index);
60-
}
61-
6257
bool MediaInputManager::HandleSelectInput(const uint8_t index)
6358
{
6459
for (auto const & inputData : mInputs)

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

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class MediaInputManager : public chip::app::Clusters::MediaInput::Delegate
3333

3434
CHIP_ERROR HandleGetInputList(chip::app::AttributeValueEncoder & aEncoder) override;
3535
uint8_t HandleGetCurrentInput() override;
36-
bool HandleSetCurrentInput(const uint8_t index) override;
3736
bool HandleSelectInput(const uint8_t index) override;
3837
bool HandleShowInputStatus() override;
3938
bool HandleHideInputStatus() override;

src/app/clusters/media-input-server/media-input-delegate.h

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class Delegate
3535
// no easy way to handle the return memory of app::Clusters::MediaInput::Structs::InputInfoStruct::Type list, so encoder is used
3636
virtual CHIP_ERROR HandleGetInputList(app::AttributeValueEncoder & aEncoder) = 0;
3737
virtual uint8_t HandleGetCurrentInput() = 0;
38-
virtual bool HandleSetCurrentInput(const uint8_t index) = 0;
3938
virtual bool HandleSelectInput(const uint8_t index) = 0;
4039
virtual bool HandleShowInputStatus() = 0;
4140
virtual bool HandleHideInputStatus() = 0;

0 commit comments

Comments
 (0)