Skip to content

Commit 13aa22e

Browse files
committed
Remove using and featuremap in header file
1 parent d4b5cff commit 13aa22e

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

examples/chef/common/clusters/keypad-input/KeypadInputManager.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <app/util/config.h>
2424

2525
using namespace chip;
26+
using namespace chip::app;
2627
using namespace chip::app::Clusters::KeypadInput;
2728

2829
void KeypadInputManager::HandleSendKey(CommandResponseHelper<SendKeyResponseType> & helper, const CecKeyCodeType & keycCode)
@@ -101,11 +102,6 @@ void KeypadInputManager::HandleSendKey(CommandResponseHelper<SendKeyResponseType
101102

102103
uint32_t KeypadInputManager::GetFeatureMap(chip::EndpointId endpoint)
103104
{
104-
if (endpoint >= EMBER_AF_KEYPAD_INPUT_CLUSTER_SERVER_ENDPOINT_COUNT)
105-
{
106-
return mDynamicEndpointFeatureMap;
107-
}
108-
109105
uint32_t featureMap = 0;
110106
Attributes::FeatureMap::Get(endpoint, &featureMap);
111107
return featureMap;

examples/chef/common/clusters/keypad-input/KeypadInputManager.h

+4-8
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,15 @@
2020

2121
#include <app/clusters/keypad-input-server/keypad-input-server.h>
2222

23-
using chip::app::CommandResponseHelper;
24-
using KeypadInputDelegate = chip::app::Clusters::KeypadInput::Delegate;
25-
using SendKeyResponseType = chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::Type;
26-
using CecKeyCodeType = chip::app::Clusters::KeypadInput::CECKeyCodeEnum;
2723

28-
class KeypadInputManager : public KeypadInputDelegate
24+
class KeypadInputManager : public chip::app::Clusters::KeypadInput::Delegate
2925
{
26+
using SendKeyResponseType = chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::Type;
27+
using CecKeyCodeType = chip::app::Clusters::KeypadInput::CECKeyCodeEnum;
3028
public:
31-
void HandleSendKey(CommandResponseHelper<SendKeyResponseType> & helper, const CecKeyCodeType & keyCode) override;
29+
void HandleSendKey(chip::app::CommandResponseHelper<SendKeyResponseType> & helper, const CecKeyCodeType & keyCode) override;
3230

3331
uint32_t GetFeatureMap(chip::EndpointId endpoint) override;
3432

3533
private:
36-
// TODO: set this based upon meta data from app
37-
uint32_t mDynamicEndpointFeatureMap = 7;
3834
};

0 commit comments

Comments
 (0)