From 10b2d29dd365606345ebda46c3407e49b668114e Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Tue, 20 Mar 2018 22:29:02 -0400 Subject: [PATCH] arrayBufferToString not needed --- examples/upload-file-via-browser/src/App.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/examples/upload-file-via-browser/src/App.js b/examples/upload-file-via-browser/src/App.js index 102d86e14..ec542f15b 100644 --- a/examples/upload-file-via-browser/src/App.js +++ b/examples/upload-file-via-browser/src/App.js @@ -13,7 +13,6 @@ class App extends React.Component { // bind methods this.captureFile = this.captureFile.bind(this) this.saveToIpfs = this.saveToIpfs.bind(this) - this.arrayBufferToString = this.arrayBufferToString.bind(this) this.handleSubmit = this.handleSubmit.bind(this) } @@ -40,10 +39,6 @@ class App extends React.Component { }) } - arrayBufferToString (arrayBuffer) { - return String.fromCharCode.apply(null, new Uint16Array(arrayBuffer)) - } - handleSubmit (event) { event.preventDefault() }