Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
kessler committed Jul 15, 2018
1 parent 1e53086 commit c9e5d0a
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions test/Experiment.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,26 +140,6 @@ describe('Experiment picks a variation', () => {
visitorCounter = new Counter()
})

class Counter {
constructor() {
this._data = new Map()
}

count(something) {
let count = this._data.get(something)

if (!count) {
count = 0
}

this._data.set(something, ++count)
}

get(something) {
return this._data.get(something)
}
}

function runExperiment(experiment, size) {
for (let i = 0; i < size; i++) {
let variation = experiment.pick()
Expand Down

0 comments on commit c9e5d0a

Please sign in to comment.