Skip to content

Commit

Permalink
remove mode-base-cluster sdk's EnumerateAcceptedCommands and Enumerat…
Browse files Browse the repository at this point in the history
…eGeneratedCommands
  • Loading branch information
mideayanghui committed Nov 24, 2023
1 parent dc3d9ef commit 1690ea2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
15 changes: 0 additions & 15 deletions src/app/clusters/mode-base-server/mode-base-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,21 +298,6 @@ void Instance::InvokeCommand(HandlerContext & handlerContext)
}
}

// List the commands supported by this instance.
CHIP_ERROR Instance::EnumerateAcceptedCommands(const ConcreteClusterPath & cluster,
CommandHandlerInterface::CommandIdCallback callback, void * context)
{
callback(ModeBase::Commands::ChangeToMode::Id, context);
return CHIP_NO_ERROR;
}

// List the commands generated by this instance.
CHIP_ERROR Instance::EnumerateGeneratedCommands(const ConcreteClusterPath & cluster, CommandIdCallback callback, void * context)
{
callback(ModeBase::Commands::ChangeToModeResponse::Id, context);
return CHIP_NO_ERROR;
}

// Implements the read functionality for complex attributes.
CHIP_ERROR Instance::Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder)
{
Expand Down
3 changes: 0 additions & 3 deletions src/app/clusters/mode-base-server/mode-base-server.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ class Instance : public CommandHandlerInterface, public AttributeAccessInterface

// CommandHandlerInterface
void InvokeCommand(HandlerContext & ctx) override;
CHIP_ERROR EnumerateAcceptedCommands(const ConcreteClusterPath & cluster, CommandIdCallback callback, void * context) override;
CHIP_ERROR EnumerateGeneratedCommands(const ConcreteClusterPath & cluster, CommandIdCallback callback, void * context) override;

// AttributeAccessInterface
CHIP_ERROR Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder) override;
CHIP_ERROR Write(const ConcreteDataAttributePath & aPath, AttributeValueDecoder & aDecoder) override;
Expand Down

0 comments on commit 1690ea2

Please sign in to comment.