Skip to content

Commit

Permalink
remove the worker related files as I plan to go with reqwest
Browse files Browse the repository at this point in the history
  • Loading branch information
Erk- committed Jun 27, 2023
1 parent 1731074 commit 3fa23d9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 131 deletions.
5 changes: 0 additions & 5 deletions twilight-http/src/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ mod reqwest;
#[cfg(target_arch = "wasm32")]
pub use self::reqwest::{HttpClient, RawRequest, RawResponseFuture, RawResponse};

// #[cfg(target_arch = "wasm32")]
// mod worker;
// #[cfg(target_arch = "wasm32")]
// pub use self::worker::{HttpClient, RawRequest, RawResponseFuture, RawResponse};

use http::{Method, HeaderMap, HeaderValue, Uri};

pub struct RawRequestBuilder {
Expand Down
111 changes: 0 additions & 111 deletions twilight-http/src/http/worker/mod.rs

This file was deleted.

15 changes: 0 additions & 15 deletions twilight-http/src/response/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,21 +444,6 @@ impl BytesFuture {
}
}

// #[cfg(target_arch = "wasm32")]
// pub(crate) fn from_worker(response: ::worker::Response) -> Self {
// let fut = async move {
// response.bytes().await
// .map_err(|source| DeserializeBodyError {
// kind: DeserializeBodyErrorType::Chunking,
// source: None,
// })
// };

// BytesFuture {
// inner: Box::pin(fut),
// }
// }

#[cfg(target_arch = "wasm32")]
pub(crate) fn from_reqwest(response: reqwest::Response) -> Self {
let fut = async move {
Expand Down

0 comments on commit 3fa23d9

Please sign in to comment.