From 6d0aae2c92d50fc21fd0c2a44ba944b87d78018f Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Sat, 7 Jan 2023 17:28:37 -0500 Subject: [PATCH] remove navigate_to_path function --- web/src/js_lib.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/web/src/js_lib.rs b/web/src/js_lib.rs index eab0eea..c8081c3 100644 --- a/web/src/js_lib.rs +++ b/web/src/js_lib.rs @@ -12,16 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. use js_sys::Date; -use wasm_bindgen::JsValue; use web_sys::{window, Storage}; -pub fn navigate_to_path(path: &str) -> Result<(), JsValue> { - window() - .expect("No window present") - .location() - .set_pathname(path) -} - pub fn get_storage() -> Storage { window() .expect("No Window Present")