From ffb83b06c13f3c7ea05e4d283e2953d86eb03f66 Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Sat, 12 Jun 2021 12:05:34 -0700 Subject: [PATCH] Remove early sample "greet" code --- client/web/src/App.vue | 11 ----------- client/web/wasm/src/lib.rs | 5 ----- 2 files changed, 16 deletions(-) diff --git a/client/web/src/App.vue b/client/web/src/App.vue index fec39e78..9cc514e6 100644 --- a/client/web/src/App.vue +++ b/client/web/src/App.vue @@ -76,18 +76,7 @@ img { import { defineComponent } from "vue"; import MainWindow from "./components/window/MainWindow.vue"; -const wasm = import("../wasm/pkg"); - export default defineComponent({ components: { MainWindow }, - created() { - this.greet(); - }, - methods: { - async greet() { - const { greet } = await wasm; - greet("Graphite"); - }, - }, }); diff --git a/client/web/wasm/src/lib.rs b/client/web/wasm/src/lib.rs index acf5fee8..ac6c4edd 100644 --- a/client/web/wasm/src/lib.rs +++ b/client/web/wasm/src/lib.rs @@ -35,8 +35,3 @@ extern "C" { #[wasm_bindgen(catch)] fn handleResponse(responseType: String, responseData: JsValue) -> Result<(), JsValue>; } - -#[wasm_bindgen] -pub fn greet(name: &str) -> String { - format!("Hello, {}!", name) -}