[packet_transport] Remove unnecessary friend declarations

The lambdas are defined inside PacketTransport::setup() so they
inherit member-function access rights. The friend declarations
are not needed for accessing protected members through parent pointer.
This commit is contained in:
J. Nick Koston
2026-03-18 21:30:50 -10:00
parent ad668f6395
commit c1a843a9af
@@ -58,13 +58,6 @@ struct BinarySensor {
#endif
class PacketTransport : public PollingComponent {
#ifdef USE_SENSOR
friend struct Sensor;
#endif
#ifdef USE_BINARY_SENSOR
friend struct BinarySensor;
#endif
public:
void setup() override;
void loop() override;