Skip to content

Commit d51318d

Browse files
authored
chore(client/legacy): remove unused PoolClient::is_closed() (#169)
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<B>` type. Signed-off-by: katelyn martin <me+cratelyn@katelyn.world>
1 parent 1290685 commit d51318d

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/client/legacy/client.rs

-9
Original file line numberDiff line numberDiff line change
@@ -758,15 +758,6 @@ impl<B> PoolClient<B> {
758758
PoolTx::Http2(ref tx) => tx.is_ready(),
759759
}
760760
}
761-
762-
fn is_closed(&self) -> bool {
763-
match self.tx {
764-
#[cfg(feature = "http1")]
765-
PoolTx::Http1(ref tx) => tx.is_closed(),
766-
#[cfg(feature = "http2")]
767-
PoolTx::Http2(ref tx) => tx.is_closed(),
768-
}
769-
}
770761
}
771762

772763
impl<B: Body + 'static> PoolClient<B> {

0 commit comments

Comments
 (0)