diff --git a/src/controllers/version/downloads.rs b/src/controllers/version/downloads.rs index 8ebcc06f918..9fe2ff5733d 100644 --- a/src/controllers/version/downloads.rs +++ b/src/controllers/version/downloads.rs @@ -26,16 +26,6 @@ pub async fn download( } } -#[instrument("db.query", skip(conn), fields(message = "SELECT ... FROM versions"))] -fn get_version_id(krate: &str, version: &str, conn: &mut PgConnection) -> QueryResult { - versions::table - .inner_join(crates::table) - .select(versions::id) - .filter(crates::name.eq(&krate)) - .filter(versions::num.eq(&version)) - .first::(conn) -} - /// Handles the `GET /crates/:crate_id/:version/downloads` route. pub async fn downloads( app: AppState,