Remove early sample "greet" code

This commit is contained in:
Keavon Chambers 2021-06-12 12:05:34 -07:00
parent 3079223db3
commit ffb83b06c1
2 changed files with 0 additions and 16 deletions

View file

@ -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");
},
},
});
</script>

View file

@ -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)
}