From 9c1eae29655d64d73f02a8bf8bf958354e554fad Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Wed, 20 May 2020 10:36:41 -0230 Subject: [PATCH] Delete unused util functions (#8622) --- app/scripts/lib/util.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/app/scripts/lib/util.js b/app/scripts/lib/util.js index bfb282494..5b21a5f0e 100644 --- a/app/scripts/lib/util.js +++ b/app/scripts/lib/util.js @@ -132,20 +132,6 @@ function BnMultiplyByFraction (targetBN, numerator, denominator) { return targetBN.mul(numBN).div(denomBN) } -function removeListeners (listeners, emitter) { - Object.keys(listeners).forEach((key) => { - emitter.removeListener(key, listeners[key]) - }) -} - -function mapObjectValues (object, cb) { - const mappedObject = {} - Object.keys(object).forEach((key) => { - mappedObject[key] = cb(key, object[key]) - }) - return mappedObject -} - /** * Returns an Error if extension.runtime.lastError is present * this is a workaround for the non-standard error object thats used @@ -165,13 +151,11 @@ function checkForError () { } export { - removeListeners, getPlatform, getEnvironmentType, sufficientBalance, hexToBn, bnToHex, BnMultiplyByFraction, - mapObjectValues, checkForError, }