remove unused fetch_plans_since method

This commit is contained in:
Jeremy Wall 2022-11-20 08:49:06 -05:00
parent 0f896c2a32
commit f4e7c0cf63

View File

@ -365,23 +365,6 @@ impl HttpStore {
} }
} }
pub async fn get_plans_since(
&self,
date: chrono::NaiveDate,
) -> Result<BTreeMap<chrono::NaiveDate, Vec<(String, i32)>>, Error> {
let mut path = self.root.clone();
path.push_str("/plan");
path.push_str(&format!("/{}", date));
// TODO(jwall): How does this play with the cache?
let resp = reqwasm::http::Request::get(&path).send().await?;
if resp.status() != 200 {
Err(format!("Status: {}", resp.status()).into())
} else {
debug!("We got a valid response back");
Ok(resp.json().await?)
}
}
pub async fn get_inventory_data( pub async fn get_inventory_data(
&self, &self,
) -> Result<(BTreeSet<IngredientKey>, BTreeMap<IngredientKey, String>), Error> { ) -> Result<(BTreeSet<IngredientKey>, BTreeMap<IngredientKey, String>), Error> {