Skip to content

Commit

Permalink
remove unused private hidden methods
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Jun 19, 2021
1 parent 6893773 commit f81d4bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
12 changes: 0 additions & 12 deletions src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,6 @@ impl HttpRequest {
}),
}
}

#[doc(hidden)]
pub fn __priv_test_new(
path: Path<Url>,
head: Message<RequestHead>,
rmap: Rc<ResourceMap>,
config: AppConfig,
app_data: Rc<Extensions>,
) -> HttpRequest {
let app_state = AppInitServiceState::new(rmap, config);
Self::new(path, head, app_state, app_data)
}
}

impl HttpRequest {
Expand Down
6 changes: 0 additions & 6 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ impl ServiceRequest {
Self { req, payload }
}

/// Construct service request.
#[doc(hidden)]
pub fn __priv_test_new(req: HttpRequest, payload: Payload) -> Self {
Self::new(req, payload)
}

/// Deconstruct request into parts
#[inline]
pub fn into_parts(self) -> (HttpRequest, Payload) {
Expand Down

0 comments on commit f81d4bd

Please sign in to comment.