From 8db4945620de862d8a035d09bb88a730fc317544 Mon Sep 17 00:00:00 2001 From: neothethird Date: Wed, 2 May 2018 00:23:15 +0200 Subject: [PATCH] Remove unneeded functions and question tags, fix #3 --- src/client.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/client.js b/src/client.js index 1f134f5..6f35dc4 100644 --- a/src/client.js +++ b/src/client.js @@ -73,7 +73,6 @@ class Client { } // Install commands - // QUESTION Should this be public? Maybe call it from createInstallCommandsFile createInstallCommands(files, installerCheck, wipe, enable) { var cmd = startCommands; if (wipe === true) cmd += "\nformat data"; @@ -104,7 +103,6 @@ class Client { } // HTTP functions - // QUESTION Should this be public? getChannelsIndex() { const _this = this; return new Promise(function(resolve, reject) { @@ -126,7 +124,6 @@ class Client { }); } - // QUESTION Should this be public? getDeviceIndex(device, channel) { var _this = this; return new Promise(function(resolve, reject) { @@ -215,24 +212,6 @@ class Client { return ret; } - // QUESTION Is this still needed? - getFileBasenameArray(urls) { - var files = []; - urls.forEach((url) => { - files.push(path.basename(url.url)); - }); - return files; - } - - // QUESTION Is this still needed? - getFilePathArray(urls) { - var files = []; - urls.forEach((url) => { - files.push(url.path + "/" + path.basename(url.url)); - }); - return files; - } - getFilePushArray(urls) { var files = []; urls.forEach((url) => {