Skip to content

Commit 71e364b

Browse files
committed
Remove two unused Wasm functions
1 parent d4ecc81 commit 71e364b

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

src/wasm/api.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,8 @@ use crate::{
66
domain::Text,
77
lexer::{Lexer, Token},
88
wasm::repr::WasmCodeObject,
9-
Engine, MemphisContext,
109
};
1110

12-
#[wasm_bindgen]
13-
pub fn greet() -> String {
14-
"Hello from WebAssembly!".to_string()
15-
}
16-
17-
#[wasm_bindgen]
18-
pub fn evaluate(code: String) -> String {
19-
// Set the panic hook for better error messages in the browser console
20-
set_once();
21-
22-
let mut context = MemphisContext::stdin(Engine::Treewalk);
23-
let result = context.eval(Text::new(&code)).expect("Failed to evaluate.");
24-
result.to_string()
25-
}
26-
2711
#[wasm_bindgen]
2812
pub fn compile(text: String) -> Result<JsValue, JsValue> {
2913
set_once();

0 commit comments

Comments
 (0)