diff options
author | jelemux <jeremias.weber@protonmail.com> | 2020-10-21 22:03:11 +0200 |
---|---|---|
committer | jelemux <jeremias.weber@protonmail.com> | 2020-10-21 22:03:11 +0200 |
commit | a282937caa839ef52f213355e60f5512d5593a92 (patch) | |
tree | da8deacae950a2c2703b76c2ae4a3daf9738665e /src/view.rs | |
parent | 10eb0e8cff7f0bc6b61a77a179fec55ee1dfe929 (diff) | |
download | wasm-card-a282937caa839ef52f213355e60f5512d5593a92.tar.gz wasm-card-a282937caa839ef52f213355e60f5512d5593a92.tar.bz2 |
removed some unused code
Diffstat (limited to 'src/view.rs')
-rw-r--r-- | src/view.rs | 5 |
1 files changed, 0 insertions, 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), |