From 5765ea5aa4416753c5719828df3745946b3586a4 Mon Sep 17 00:00:00 2001 From: Surma Date: Wed, 9 Dec 2020 10:16:02 +0000 Subject: [PATCH] Update cli/src/image_data.js --- cli/src/image_data.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cli/src/image_data.js b/cli/src/image_data.js index 5ac9617d..7d7736be 100644 --- a/cli/src/image_data.js +++ b/cli/src/image_data.js @@ -1,10 +1,5 @@ export default class ImageData { constructor(data, width, height) { - // Need to manually copy the memory as wasm-bindgen does not by default - // and by the time we get control in JS land, the memory has already - // been corrupted. - // FIXME: This is bad because it’s overhead that we should only need - // to pay for Rust, not for C++. this.data = data; this.width = width; this.height = height;