From bb8a04cbadc16c8195b87e8fd307a2403d2212fa Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 23 Feb 2023 10:37:44 -0700 Subject: [PATCH] [wasm] Remove the print(returnval) and use it to fail shaper --- docs/wasm-shaper.md | 2 -- src/hb-wasm-shape.cc | 8 +------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/docs/wasm-shaper.md b/docs/wasm-shaper.md index 1d101c1b1..0bf1a0b90 100644 --- a/docs/wasm-shaper.md +++ b/docs/wasm-shaper.md @@ -68,7 +68,6 @@ And now we can run it! ``` % hb-shape test-wasm.ttf abc --shapers=wasm -1 [cent=0|sterling=1|fraction=2] ``` @@ -114,6 +113,5 @@ With this compiled into a WASM module, and installed into our font again, finall ``` $ hb-shape test-wasm.ttf abc Hello from Rust! -1 [cent=0|sterling=1|fraction=2] ``` diff --git a/src/hb-wasm-shape.cc b/src/hb-wasm-shape.cc index 3aa77b5ba..1a57915ab 100644 --- a/src/hb-wasm-shape.cc +++ b/src/hb-wasm-shape.cc @@ -213,13 +213,7 @@ _hb_wasm_shape (hb_shape_plan_t *shape_plan, goto fail; } - printf ("%i\n", results[0].of.i32); - - - if (!face_data) - goto fail; - - if (0) + if (!results[0].of.i32) { fail: ret = false;