aboutsummaryrefslogtreecommitdiff
path: root/osp/impl/mdns_platform_service.cc
diff options
context:
space:
mode:
Diffstat (limited to 'osp/impl/mdns_platform_service.cc')
-rw-r--r--osp/impl/mdns_platform_service.cc46
1 files changed, 0 insertions, 46 deletions
diff --git a/osp/impl/mdns_platform_service.cc b/osp/impl/mdns_platform_service.cc
deleted file mode 100644
index 4968c259..00000000
--- a/osp/impl/mdns_platform_service.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2018 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "osp/impl/mdns_platform_service.h"
-
-#include <cstring>
-
-#include "util/osp_logging.h"
-
-namespace openscreen {
-namespace osp {
-
-MdnsPlatformService::BoundInterface::BoundInterface(
- const InterfaceInfo& interface_info,
- const IPSubnet& subnet,
- UdpSocket* socket)
- : interface_info(interface_info), subnet(subnet), socket(socket) {
- OSP_DCHECK(socket);
-}
-
-MdnsPlatformService::BoundInterface::~BoundInterface() = default;
-
-bool MdnsPlatformService::BoundInterface::operator==(
- const MdnsPlatformService::BoundInterface& other) const {
- if (interface_info.index != other.interface_info.index)
- return false;
-
- if (subnet.address != other.subnet.address ||
- subnet.prefix_length != other.subnet.prefix_length) {
- return false;
- }
-
- if (socket != other.socket)
- return false;
-
- return true;
-}
-
-bool MdnsPlatformService::BoundInterface::operator!=(
- const MdnsPlatformService::BoundInterface& other) const {
- return !(*this == other);
-}
-
-} // namespace osp
-} // namespace openscreen