aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authortmashuang <thomas.b.huang@gmail.com>2018-06-26 06:01:14 +0800
committertmashuang <thomas.b.huang@gmail.com>2018-06-26 06:01:14 +0800
commitdd18684a5d682f48528f278284619983f13bf82f (patch)
tree6968f0167a7822799607a9da5aa3df4c3c190fb8 /app/scripts
parent27c348ba77c9be7baafd48516ef6f46f5402f4d0 (diff)
downloadtangerine-wallet-browser-dd18684a5d682f48528f278284619983f13bf82f.tar.gz
tangerine-wallet-browser-dd18684a5d682f48528f278284619983f13bf82f.tar.zst
tangerine-wallet-browser-dd18684a5d682f48528f278284619983f13bf82f.zip
Remove unsued nonce tracker function
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/controllers/transactions/nonce-tracker.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/app/scripts/controllers/transactions/nonce-tracker.js b/app/scripts/controllers/transactions/nonce-tracker.js
index 35ca08d6c..06f336eaa 100644
--- a/app/scripts/controllers/transactions/nonce-tracker.js
+++ b/app/scripts/controllers/transactions/nonce-tracker.js
@@ -129,19 +129,6 @@ class NonceTracker {
return Number.isInteger(highest) ? highest + 1 : 0
}
- _reduceTxListToUniqueNonces (txList) {
- const reducedTxList = txList.reduce((reducedList, txMeta, index) => {
- if (!index) return [txMeta]
- const nonceMatches = txList.filter((txData) => {
- return txMeta.txParams.nonce === txData.txParams.nonce
- })
- if (nonceMatches.length > 1) return reducedList
- reducedList.push(txMeta)
- return reducedList
- }, [])
- return reducedTxList
- }
-
_getHighestNonce (txList) {
const nonces = txList.map((txMeta) => {
const nonce = txMeta.txParams.nonce