diff --git a/backend/src/http/v1/mod.rs b/backend/src/http/v1/mod.rs
index 3fdfe8dfb..7d4bf4f95 100644
--- a/backend/src/http/v1/mod.rs
+++ b/backend/src/http/v1/mod.rs
@@ -14,30 +14,5 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-use lapin::Channel;
-use std::sync::Arc;
-use warp::http::StatusCode;
-use warp::Filter;
-
-use super::ReacherResponseError;
-
pub mod bulk;
pub mod check_email;
-
-/// Warp filter that extracts lapin Channel, or returns a 503 error if it's not
-/// available.
-pub fn with_channel(
- channel: Option>,
-) -> impl Filter,), Error = warp::Rejection> + Clone {
- warp::any().and_then(move || {
- let channel = channel.clone();
- async move {
- channel.ok_or_else(|| {
- warp::reject::custom(ReacherResponseError::new(
- StatusCode::SERVICE_UNAVAILABLE,
- "Please configure a RabbitMQ instance on Reacher before calling this endpoint",
- ))
- })
- }
- })
-}