From ec1ae4c0efe0410df3f4a05e433560c1b3788bb3 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Tue, 22 Jun 2021 10:19:48 -0700 Subject: [PATCH] [dnssd-server] remove unused `using` for `HostSwap16()` (#6758) This addresses `clang-tidy` warning for unused `using` statement. This commit also ensures `OT_DNSSD_SERVER` is enabled in `make-pretty` script and therefore covered by github action `build pretty` workflow. --- script/make-pretty | 1 + src/core/net/dnssd_server.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/script/make-pretty b/script/make-pretty index 1f7edae13..b1f444ff1 100755 --- a/script/make-pretty +++ b/script/make-pretty @@ -95,6 +95,7 @@ readonly OT_CLANG_TIDY_BUILD_OPTS=( '-DOT_DHCP6_SERVER=ON' '-DOT_DIAGNOSTIC=ON' '-DOT_DNS_CLIENT=ON' + '-DOT_DNSSD_SERVER=ON' '-DOT_DUA=ON' '-DOT_MLR=ON' '-DOT_ECDSA=ON' diff --git a/src/core/net/dnssd_server.cpp b/src/core/net/dnssd_server.cpp index a484366e4..6738994d6 100644 --- a/src/core/net/dnssd_server.cpp +++ b/src/core/net/dnssd_server.cpp @@ -43,8 +43,6 @@ #include "net/srp_server.hpp" #include "net/udp6.hpp" -using ot::Encoding::BigEndian::HostSwap16; - namespace ot { namespace Dns { namespace ServiceDiscovery {