Skip to content

Commit 04bac90

Browse files
committed
util/request_helpers: Remove obsolete RequestUtils::query() fn
1 parent fbb068f commit 04bac90

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/util/request_helpers.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,11 @@ pub fn redirect(url: String) -> Response {
2727
}
2828

2929
pub trait RequestUtils {
30-
fn query(&self) -> IndexMap<String, String>;
3130
fn wants_json(&self) -> bool;
3231
fn query_with_params(&self, params: IndexMap<String, String>) -> String;
3332
}
3433

3534
impl<T: RequestPartsExt> RequestUtils for T {
36-
fn query(&self) -> IndexMap<String, String> {
37-
url::form_urlencoded::parse(self.uri().query().unwrap_or("").as_bytes())
38-
.into_owned()
39-
.collect()
40-
}
41-
4235
fn wants_json(&self) -> bool {
4336
self.headers()
4437
.get_all(header::ACCEPT)

0 commit comments

Comments
 (0)