From 56f1a070420472c67ee0d056f1d9bd6396cacda5 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Thu, 21 Apr 2022 11:08:44 -0400 Subject: [PATCH] Remove incorrect comments in WriteHandler. We're not parsing into a "cluster info" and we are not ignoring CHIP_END_OF_TLV. The comments simply do not match the code. --- src/app/WriteHandler.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/app/WriteHandler.cpp b/src/app/WriteHandler.cpp index 442d7a7e6cbb1d..3a57f50ec6800a 100644 --- a/src/app/WriteHandler.cpp +++ b/src/app/WriteHandler.cpp @@ -306,9 +306,6 @@ CHIP_ERROR WriteHandler::ProcessAttributeDataIBs(TLV::TLVReader & aAttributeData err = element.GetPath(&attributePath); SuccessOrExit(err); - // We are using the feature that the parser won't touch the value if the field does not exist, since all fields in the - // cluster info will be invalid / wildcard, it is safe ignore CHIP_END_OF_TLV directly. - err = attributePath.GetEndpoint(&(dataAttributePath.mEndpointId)); SuccessOrExit(err); @@ -424,9 +421,6 @@ CHIP_ERROR WriteHandler::ProcessGroupAttributeDataIBs(TLV::TLVReader & aAttribut err = element.GetPath(&attributePath); SuccessOrExit(err); - // We are using the feature that the parser won't touch the value if the field does not exist, since all fields in the - // cluster info will be invalid / wildcard, it is safe to ignore CHIP_END_OF_TLV. - err = attributePath.GetCluster(&(dataAttributePath.mClusterId)); SuccessOrExit(err);