Skip to content

Commit

Permalink
* Remove the unused code and refine the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Chin-Ran Lo <[email protected]>
  • Loading branch information
crlonxp committed Jul 26, 2023
1 parent 2c8cad0 commit c8e503d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
/*
*
* Copyright (c) 2023 Project CHIP Authors
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <app/clusters/laundry-washer-controls-server/laundry-washer-controls-server.h>
#include <app/util/config.h>
#include <laundry-washer-controls-delegate-impl.h>

using namespace std;
using namespace chip;
using namespace chip::app::Clusters;
using namespace chip::app::Clusters::LaundryWasherControls;
using chip::Protocols::InteractionModel::Status;

const CharSpan LaundryWasherControlDelegate::spinSpeedsNameOptions[] = {
CharSpan::fromCharString("Off"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ class Delegate
/**
* Get the supported rinses value at the given index in the list.
* @param index The index of the supported rinses with 0 representing the first one.
* @param supportedRinse The MutableCharSpan to copy the string data into. On success, the callee must update
* the length to the length of the copied data.
* @return CHIP_ERROR_PROVIDER_LIST_EXHAUSTED if the index is out of range for the list of spin speeds.
* @param supportedRinse The supported rinse at the given index
* @return CHIP_ERROR_PROVIDER_LIST_EXHAUSTED if the index is out of range for the list of supported rinses.
*/
virtual CHIP_ERROR GetSupportedRinseAtIndex(size_t index, NumberOfRinsesEnum & supportedRinse) = 0;
};
Expand Down

0 comments on commit c8e503d

Please sign in to comment.