mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
Remove early sample "greet" code
This commit is contained in:
parent
3079223db3
commit
ffb83b06c1
2 changed files with 0 additions and 16 deletions
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue