From b43754da6a7cc91abff7ae5b06f22157f3f81104 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 24 Feb 2021 15:06:01 +0100 Subject: [PATCH] code is wrong and unused, so delete it is wrong in the way that it does not always return a string --- src/platform/web/dom/BlobHandle.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/platform/web/dom/BlobHandle.js b/src/platform/web/dom/BlobHandle.js index fb1b150a..92c875e7 100644 --- a/src/platform/web/dom/BlobHandle.js +++ b/src/platform/web/dom/BlobHandle.js @@ -107,20 +107,6 @@ export class BlobHandle { } } - async readAsText() { - if (this._buffer) { - return this._buffer; - } else { - const reader = new FileReader(); - const promise = new Promise((resolve, reject) => { - reader.addEventListener("load", evt => resolve(evt.target.result)); - reader.addEventListener("error", evt => reject(evt.target.error)); - }); - reader.readAsText(this._blob, "utf-8"); - return promise; - } - } - get url() { if (!this._url) { this._url = URL.createObjectURL(this._blob);