Skip to content

Commit 509acff

Browse files
committed
Drop Ueberbackend handle instance counter, nothing uses it.
Signed-off-by: Miod Vallat <[email protected]>
1 parent b7a489b commit 509acff

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

pdns/ueberbackend.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,19 +1063,6 @@ void UeberBackend::flush()
10631063
}
10641064
}
10651065

1066-
AtomicCounter UeberBackend::handle::instances(0);
1067-
1068-
UeberBackend::handle::handle()
1069-
{
1070-
// g_log<<Logger::Warning<<"Handle instances: "<<instances<<endl;
1071-
++instances;
1072-
}
1073-
1074-
UeberBackend::handle::~handle()
1075-
{
1076-
--instances;
1077-
}
1078-
10791066
// Set d_hinterBackend to the next available backend from the parents list,
10801067
// reset it to nullptr if the whole list has been processed.
10811068
// Invokes lookup on behalf of the newly picked backend if successful.

pdns/ueberbackend.hh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ public:
6868
public:
6969
bool get(DNSZoneRecord& record);
7070
void lookupEnd() const;
71-
handle();
72-
~handle();
7371

7472
//! The UeberBackend class where this handle belongs to
7573
UeberBackend* parent{nullptr};
@@ -86,8 +84,6 @@ public:
8684
void selectNextBackend();
8785

8886
private:
89-
static AtomicCounter instances;
90-
9187
//! The currently selected real backend, which is answering questions
9288
DNSBackend* d_hinterBackend{nullptr};
9389
};

0 commit comments

Comments
 (0)