aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstore/remote-store.cc5
-rw-r--r--src/libstore/remote-store.hh2
-rw-r--r--src/libutil/pool.hh10
3 files changed, 0 insertions, 17 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc
index f0dbe8e21..20c1c50f2 100644
--- a/src/libstore/remote-store.cc
+++ b/src/libstore/remote-store.cc
@@ -940,11 +940,6 @@ std::optional<TrustedFlag> RemoteStore::isTrustedClient()
return conn->remoteTrustsUs;
}
-void RemoteStore::flushBadConnections()
-{
- connections->flushBad();
-}
-
RemoteStore::Connection::~Connection()
{
diff --git a/src/libstore/remote-store.hh b/src/libstore/remote-store.hh
index f0985fdc1..0cae81e16 100644
--- a/src/libstore/remote-store.hh
+++ b/src/libstore/remote-store.hh
@@ -161,8 +161,6 @@ public:
std::optional<TrustedFlag> isTrustedClient() override;
- void flushBadConnections();
-
struct Connection;
ref<Connection> openConnectionWrapper();
diff --git a/src/libutil/pool.hh b/src/libutil/pool.hh
index 548e7ce69..b7a749e3a 100644
--- a/src/libutil/pool.hh
+++ b/src/libutil/pool.hh
@@ -184,16 +184,6 @@ public:
{
return state.lock()->max;
}
-
- void flushBad()
- {
- auto state_(state.lock());
- std::vector<ref<R>> left;
- for (auto & p : state_->idle)
- if (validator(p))
- left.push_back(p);
- std::swap(state_->idle, left);
- }
};
}