From 9046b2ad43beaaf30ae0790b70e561d33dc7c994 Mon Sep 17 00:00:00 2001 From: marsteralex Date: Sun, 11 Sep 2022 14:46:51 +0200 Subject: [PATCH] cleanup code --- web/public/mtg/app.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/web/public/mtg/app.js b/web/public/mtg/app.js index 06f167b3..77404039 100644 --- a/web/public/mtg/app.js +++ b/web/public/mtg/app.js @@ -1,8 +1,6 @@ mode = 'PLAY' allData = {} total = 0 -probList = [] -nameList = [] weightedCards = [] indWeighedCards = 0 k = 12 @@ -57,10 +55,6 @@ function putIntoMapAndFetch(data) { total = newArtistData[1] } for (const [key, value] of Object.entries(allData)) { - nameList.push(key) - probList.push( - value.length + (probList.length === 0 ? 0 : probList[probList.length - 1]) - ) for (let j = 0; j < value.length; j++) { weightedCards.push(key) } @@ -68,8 +62,6 @@ function putIntoMapAndFetch(data) { shuffleArray(weightedCards) window.console.log(allData) window.console.log(total) - window.console.log(probList) - window.console.log(nameList) if (whichGuesser === 'counterspell') { document.getElementById('guess-type').innerText = 'Counterspell Guesser' } else if (whichGuesser === 'burn') {