Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eahove committed Dec 21, 2023
1 parent 5f94c2c commit 06e310a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ namespace chip {
namespace app {
namespace Clusters {

// class RvcDevice;

// typedef void (RvcDevice::*HandleOpStateCommand)(Clusters::OperationalState::GenericOperationalError & err);

namespace OvenCavityOperationalState {

// This is an application level delegate to handle operational state commands according to the specific business logic.
Expand All @@ -42,25 +38,16 @@ class OvenCavityOperationalStateDelegate : public OperationalState::Delegate
OperationalState::GenericOperationalState(to_underlying(OperationalState::OperationalStateEnum::kRunning)),
OperationalState::GenericOperationalState(to_underlying(OperationalState::OperationalStateEnum::kPaused)),
OperationalState::GenericOperationalState(to_underlying(OperationalState::OperationalStateEnum::kError)),
// OperationalState::GenericOperationalState(to_underlying(Clusters::OvenCavityOperationalState::OperationalStateEnum::kPreheating)),
// OperationalState::GenericOperationalState(to_underlying(Clusters::OvenCavityOperationalState::OperationalStateEnum::kPreheated)),
// OperationalState::GenericOperationalState(to_underlying(Clusters::OvenCavityOperationalState::OperationalStateEnum::kCoolingDown)),
// OperationalState::GenericOperationalState(to_underlying(Clusters::OvenCavityOperationalState::OperationalStateEnum::kSelfCleaning))
};

const Clusters::OperationalState::GenericOperationalPhase mOperationalPhaseList[1] = {
// Phase List is null
OperationalState::GenericOperationalPhase(DataModel::Nullable<CharSpan>()),
};

// RvcDevice * mPauseRvcDeviceInstance;
// HandleOpStateCommand mPauseCallback;
// RvcDevice * mResumeRvcDeviceInstance;
// HandleOpStateCommand mResumeCallback;

public:
/**
* Get the countdown time. This attribute is not supported in our example RVC app.
* Get the countdown time. This attribute is not supported in our example app.
* @return Null.
*/
DataModel::Nullable<uint32_t> GetCountdownTime() override { return {}; };
Expand Down Expand Up @@ -119,18 +106,6 @@ class OvenCavityOperationalStateDelegate : public OperationalState::Delegate
void HandleStopStateCallback(Clusters::OperationalState::GenericOperationalError & err) override{
// This command in not supported.
};

// void SetPauseCallback(HandleOpStateCommand aCallback, RvcDevice * aInstance)
// {
// mPauseCallback = aCallback;
// mPauseRvcDeviceInstance = aInstance;
// };

// void SetResumeCallback(HandleOpStateCommand aCallback, RvcDevice * aInstance)
// {
// mResumeCallback = aCallback;
// mResumeRvcDeviceInstance = aInstance;
// };
};

void Shutdown();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,3 @@ OvenCavityOperationalStateDelegate::GetOperationalPhaseAtIndex(size_t index,
operationalPhase = mOperationalPhaseList[index];
return CHIP_NO_ERROR;
}

// void RvcOperationalStateDelegate::HandlePauseStateCallback(OperationalState::GenericOperationalError & err)
// {
// (mPauseRvcDeviceInstance->*mPauseCallback)(err);
// }

// void RvcOperationalStateDelegate::HandleResumeStateCallback(OperationalState::GenericOperationalError & err)
// {
// (mResumeRvcDeviceInstance->*mResumeCallback)(err);
// }

0 comments on commit 06e310a

Please sign in to comment.