From a282937caa839ef52f213355e60f5512d5593a92 Mon Sep 17 00:00:00 2001 From: jelemux Date: Wed, 21 Oct 2020 22:03:11 +0200 Subject: removed some unused code --- src/view.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/view.rs b/src/view.rs index 6953496..281cb63 100644 --- a/src/view.rs +++ b/src/view.rs @@ -52,11 +52,6 @@ impl Component for Form { fn view(&self) -> Html { - let raw = pdfgen::genpdf(); - let data = base64::encode(&raw); - let uri_component: String = js_sys::encode_uri_component(&data).into(); - let href = format!{"data:application/pdf;base64,{}", uri_component }; - let formatted_name_input = self.link.callback(|e: ChangeData| match e { ChangeData::Value(v) => Msg::UpdateFormattedName(v), -- cgit v1.2.3