Skip to content

Commit

Permalink
Removed deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
briangonzalez committed Oct 28, 2016
1 parent 8f13582 commit eda4878
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ class Test {

let bucket;

// Support Legacy Test Structure, deprecate soon
let legacyBucket = storage.local.getItem(`test-${name}`);
if (legacyBucket) {
console.warn('Migrating tests');
tests[name] = {
bucket: legacyBucket,
buckets: Object.keys(data)
};
storage.local.setItem(storageKey, JSON.stringify(tests));
storage.local.removeItem(`test-${name}`);
}

// Retrieve Bucket from storage if possible
if (options.persist && tests[name]) {
bucket = tests[name].bucket;
Expand Down

0 comments on commit eda4878

Please sign in to comment.