From cf50d62991ed947c9bd38e659cc93f7397a5275f Mon Sep 17 00:00:00 2001 From: Oj Date: Tue, 15 Mar 2022 20:13:41 +0000 Subject: [PATCH] [Splash > Backend] Remove commented out code --- src/splash/index.js | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/splash/index.js b/src/splash/index.js index 3b17dcc..d6b9020 100644 --- a/src/splash/index.js +++ b/src/splash/index.js @@ -136,30 +136,6 @@ class UIProgress { // Generic class to track updating and sent states to splash }); } - /* record(id, state, percent) { - this.total.add(id); - - if (state !== 'Waiting') this.progress.set(id, percent); - if (state === 'Complete') this.done.add(id); - } - - send() { - if (this.stateId === 'downloading') { - console.log(this.progress); - // console.log([...this.progress.values()]); - // if (this.progress.size > 0 && this.progress.size > this.done.size) { - splashState = { - // current: this.done.size + 1, - // total: this.total.size, - progress: [...this.progress.values()].reduce((a, x) => a + x, 0) / this.total.size - }; - - sendState(this.stateId); - - return true; - } - } */ - record(id, state, current, outOf) { this.total.add(id);