From 7564f4553a33594203d62a82835c9bc4757a452e Mon Sep 17 00:00:00 2001 From: katelyn martin Date: Thu, 20 Feb 2025 00:00:00 +0000 Subject: [PATCH] chore(client/legacy): remove unused `PoolClient::is_closed()` this function is not used, and a warning is observed when this crate is built with e.g. `--all-features`. this commit removes this unused method from the `PoolClient` type. Signed-off-by: katelyn martin --- src/client/legacy/client.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/client/legacy/client.rs b/src/client/legacy/client.rs index fd744d3..0fb9ad6 100644 --- a/src/client/legacy/client.rs +++ b/src/client/legacy/client.rs @@ -758,15 +758,6 @@ impl PoolClient { PoolTx::Http2(ref tx) => tx.is_ready(), } } - - fn is_closed(&self) -> bool { - match self.tx { - #[cfg(feature = "http1")] - PoolTx::Http1(ref tx) => tx.is_closed(), - #[cfg(feature = "http2")] - PoolTx::Http2(ref tx) => tx.is_closed(), - } - } } impl PoolClient {