Remove dead code: scan_pid_files, backend_label, entries_mut, post_json
All confirmed unused anywhere in src/ or channels/. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
9598e8b86c
commit
39965556dd
4 changed files with 1 additions and 56 deletions
|
|
@ -56,15 +56,6 @@ impl HttpClient {
|
|||
self.send_empty(req).await
|
||||
}
|
||||
|
||||
/// Send a POST request with a JSON body.
|
||||
pub async fn post_json(&self, url: &str, body: &impl serde::Serialize) -> Result<HttpResponse> {
|
||||
let json = serde_json::to_vec(body).context("serializing JSON body")?;
|
||||
let req = Request::post(url)
|
||||
.header("content-type", "application/json")
|
||||
.body(Full::new(Bytes::from(json)))
|
||||
.context("building POST request")?;
|
||||
self.send_full(req).await
|
||||
}
|
||||
|
||||
/// Send a POST request with URL-encoded form data.
|
||||
pub async fn post_form(&self, url: &str, params: &[(&str, &str)]) -> Result<HttpResponse> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue