Skip to content

Commit

Permalink
Remove DOM Storage support and migration to IndexedDb
Browse files Browse the repository at this point in the history
  • Loading branch information
cburgmer committed Mar 29, 2015
1 parent 590d573 commit 3490c10
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 359 deletions.
2 changes: 0 additions & 2 deletions csscritic.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
'src/browser/pageNavigationHandlingFallback.js',
'src/browser/niceReporter.js',
'src/browser/browserRenderer.js',
'src/browser/domStorage.js',
'src/browser/indexedDbStorage.js',
'src/browser/migrateToIndexedDbStorage.js',
'src/browser/jobQueue.js',
'src/browser/urlQueryFilter.js',
'src/browser/fallbackFilter.js',
Expand Down
8 changes: 3 additions & 5 deletions src/boot/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ var csscritic = (function () {
var packageVersion = csscriticLib.packageVersion || 'dev',
util = csscriticLib.util();

var domStorage = csscriticLib.domstorage(util, localStorage),
indexedDbStorage = csscriticLib.indexeddbstorage(util),
migrateToIndexedDbStorage = csscriticLib.migratetoindexeddbstorage(domStorage, indexedDbStorage);
var indexedDbStorage = csscriticLib.indexeddbstorage(util);

var browserRenderer = csscriticLib.browserRenderer(util, csscriticLib.jobQueue, rasterizeHTML),
reporting = csscriticLib.reporting(browserRenderer, migrateToIndexedDbStorage, util),
reporting = csscriticLib.reporting(browserRenderer, indexedDbStorage, util),
regression = csscriticLib.regression(browserRenderer, util, imagediff),
queryFilter = csscriticLib.urlQueryFilter(window.location),
fallbackFilter = csscriticLib.fallbackFilter(window.location);
Expand All @@ -38,7 +36,7 @@ var csscritic = (function () {
regression,
reporting,
util,
migrateToIndexedDbStorage,
indexedDbStorage,
filter
);

Expand Down
94 changes: 0 additions & 94 deletions src/browser/domStorage.js

This file was deleted.

28 changes: 0 additions & 28 deletions src/browser/migrateToIndexedDbStorage.js

This file was deleted.

2 changes: 0 additions & 2 deletions test/SpecRunner.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
<script src="specs/utilSpec.js"></script>
<script src="specs/mainSpec.js"></script>
<script src="specs/browser/jobQueueSpec.js"></script>
<script src="specs/browser/domStorageSpec.js"></script>
<script src="specs/browser/indexedDbStorageSpec.js"></script>
<script src="specs/browser/migrateToIndexedDbStorageSpec.js"></script>
<script src="specs/browser/browserRendererSpec.js"></script>
<script src="specs/browser/niceReporterSpec.js"></script>
<script src="specs/browser/urlQueryFilterSpec.js"></script>
Expand Down
50 changes: 0 additions & 50 deletions test/specs/browser/domStorageSpec.js

This file was deleted.

178 changes: 0 additions & 178 deletions test/specs/browser/migrateToIndexedDbStorageSpec.js

This file was deleted.

0 comments on commit 3490c10

Please sign in to comment.