Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
review
Browse files Browse the repository at this point in the history
kpschoedel committed Jun 22, 2021
1 parent bc0f8d2 commit d3fe536
Showing 3 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions src/platform/Linux/MdnsImpl.cpp
Original file line number Diff line number Diff line change
@@ -81,16 +81,6 @@ chip::Inet::IPAddressType ToAddressType(AvahiProtocol protocol)
return type;
}

#if 0
SocketEvents ToSocketEvents(AvahiWatchEvent events)
{
return SocketEvents()
.Set(chip::System::SocketEventFlags::kRead, events & AVAHI_WATCH_IN)
.Set(chip::System::SocketEventFlags::kWrite, events & AVAHI_WATCH_OUT)
.Set(chip::System::SocketEventFlags::kError, events & AVAHI_WATCH_ERR);
}
#endif

AvahiWatchEvent ToAvahiWatchEvent(SocketEvents events)
{
return static_cast<AvahiWatchEvent>((events.Has(chip::System::SocketEventFlags::kRead) ? AVAHI_WATCH_IN : 0) |
1 change: 0 additions & 1 deletion src/system/WatchableSocketLibevent.cpp
Original file line number Diff line number Diff line change
@@ -29,7 +29,6 @@

namespace chip {
namespace Mdns {
// TODO(#5556): Convert MDNS to WatchableSocket.
void GetMdnsTimeout(timeval & timeout);
void HandleMdnsTimeout();
} // namespace Mdns
3 changes: 0 additions & 3 deletions src/system/WatchableSocketSelect.cpp
Original file line number Diff line number Diff line change
@@ -34,7 +34,6 @@

namespace chip {
namespace Mdns {
// TODO(#5556): Convert MDNS to WatchableSocket.
void GetMdnsTimeout(timeval & timeout);
void HandleMdnsTimeout();
} // namespace Mdns
@@ -164,7 +163,6 @@ void WatchableEventManager::PrepareEventsWithTimeout(struct timeval & nextTimeou
mSystemLayer->GetTimeout(nextTimeout);

#if CHIP_DEVICE_CONFIG_ENABLE_MDNS && !__ZEPHYR__
// TODO(#5556): Convert MDNS to WatchableSocket.
chip::Mdns::GetMdnsTimeout(nextTimeout);
#endif // CHIP_DEVICE_CONFIG_ENABLE_MDNS && !__ZEPHYR__

@@ -203,7 +201,6 @@ void WatchableEventManager::HandleEvents()
}

#if CHIP_DEVICE_CONFIG_ENABLE_MDNS && !__ZEPHYR__
// TODO(#5556): Convert MDNS to WatchableSocket.
chip::Mdns::HandleMdnsTimeout();
#endif // CHIP_DEVICE_CONFIG_ENABLE_MDNS && !__ZEPHYR__
}

0 comments on commit d3fe536

Please sign in to comment.