Skip to content

Commit

Permalink
Remove migrate company data code (#1372)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanKingston committed Aug 25, 2022
1 parent cbc3307 commit ea968dc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 39 deletions.
4 changes: 1 addition & 3 deletions shared/js/background/companies.es6.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const TopBlocked = require('./classes/top-blocked.es6')
const Company = require('./classes/company.es6')
const browserWrapper = require('./wrapper.es6')
const migrate = require('./migrate.es6')

const Companies = (() => {
let companyContainer = {}
Expand Down Expand Up @@ -126,8 +125,7 @@ const Companies = (() => {
// storageData.twitter = {count: 10, name: 'twitter', pagesSeenOn: 10}
storageData = Companies.sanitizeData(storageData)

for (let company in storageData) {
[company, storageData] = migrate.migrateCompanyData(company, storageData)
for (const company in storageData) {
const newCompany = Companies.add(storageData[company])
newCompany.set('count', storageData[company].count || 0)
newCompany.set('pagesSeenOn', storageData[company].pagesSeenOn || 0)
Expand Down
36 changes: 0 additions & 36 deletions shared/js/background/migrate.es6.js

This file was deleted.

0 comments on commit ea968dc

Please sign in to comment.