diff --git a/src/app/clusters/ota-requestor/ota-requestor.cpp b/src/app/clusters/ota-requestor/ota-requestor.cpp deleted file mode 100644 index 98c2aca2baf049..00000000000000 --- a/src/app/clusters/ota-requestor/ota-requestor.cpp +++ /dev/null @@ -1,67 +0,0 @@ -/* - * - * Copyright (c) 2021 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 -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/** - * @brief OTA Software Update Requestor Cluster AnnounceOtaProvider Command callback (from client) - */ -bool emberAfOtaSoftwareUpdateRequestorClusterAnnounceOtaProviderCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOtaProvider::DecodableType & commandData) -{ - EmberAfStatus status = EMBER_ZCL_STATUS_SUCCESS; - - if (gDelegate == nullptr) - { - ChipLogDetail(Zcl, "No OTARequestorDelegate set"); - emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_SUCCESS); - return true; - } - - status = gDelegate->HandleAnnounceOTAProvider(commandObj, commandPath, commandData); - if (status != EMBER_ZCL_STATUS_SUCCESS) - { - emberAfSendImmediateDefaultResponse(status); - } - - return true; -} - -namespace chip { -namespace app { -namespace clusters { - -void OTARequestor::SetDelegate(OTARequestorDelegate * delegate) -{ - gDelegate = delegate; -} - -} // namespace clusters -} // namespace app -} // namespace chip