From 3a727af3b0216f771530231acdba7edb0611ab68 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 25 May 2020 11:17:24 +0200 Subject: [PATCH] rec: Remove unused getQueryLocalAddress stub in the unit tests The real function moved to the pdns namespace anyway. --- pdns/recursordist/Makefile.am | 2 +- pdns/recursordist/test-rpzloader_cc.cc | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/pdns/recursordist/Makefile.am b/pdns/recursordist/Makefile.am index 099982712e..4fcb19ca72 100644 --- a/pdns/recursordist/Makefile.am +++ b/pdns/recursordist/Makefile.am @@ -224,6 +224,7 @@ endif testrunner_SOURCES = \ arguments.cc \ + axfr-retriever.hh axfr-retriever.cc \ base32.cc \ base64.cc base64.hh \ circular_buffer.hh \ @@ -263,7 +264,6 @@ testrunner_SOURCES = \ responsestats.cc \ rpzloader.cc rpzloader.hh \ resolver.hh resolver.cc \ - axfr-retriever.hh axfr-retriever.cc \ root-dnssec.hh \ secpoll.cc \ sillyrecords.cc \ diff --git a/pdns/recursordist/test-rpzloader_cc.cc b/pdns/recursordist/test-rpzloader_cc.cc index 16fb153b51..8d4d703453 100644 --- a/pdns/recursordist/test-rpzloader_cc.cc +++ b/pdns/recursordist/test-rpzloader_cc.cc @@ -11,12 +11,6 @@ // Provide stubs for some symbols bool g_logRPZChanges{false}; -ComboAddress getQueryLocalAddress(int family, uint16_t port) -{ - cerr << "getQueryLocalAddress() STUBBED IN TEST!" << endl; - BOOST_ASSERT(false); - return ComboAddress(); -} BOOST_AUTO_TEST_SUITE(rpzloader_cc) -- 2.47.2