diff --git a/src/app/WriteClient.h b/src/app/WriteClient.h index 5be883e501bd04..e81e09d422643d 100644 --- a/src/app/WriteClient.h +++ b/src/app/WriteClient.h @@ -115,11 +115,6 @@ class WriteClient : public Messaging::ExchangeDelegate CHIP_ERROR FinishAttribute(); TLV::TLVWriter * GetAttributeDataIBTLVWriter(); - NodeId GetSourceNodeId() const - { - return mpExchangeCtx != nullptr ? mpExchangeCtx->GetSessionHandle()->AsSecureSession()->GetPeerNodeId() : kUndefinedNodeId; - } - private: friend class TestWriteInteraction; friend class InteractionModelEngine;