From da4156912e5e9f6ea422204712845dd23734f24d Mon Sep 17 00:00:00 2001 From: juliandescottes Date: Tue, 18 Sep 2018 22:37:56 +0200 Subject: [PATCH] Remove migration script for 0.12 to 0.13 --- src/js/app.js | 3 --- src/js/utils/UserSettings.js | 16 ---------------- 2 files changed, 19 deletions(-) diff --git a/src/js/app.js b/src/js/app.js index 209268f7..6b43e581 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -10,9 +10,6 @@ ns.app = { init : function () { - // Run preferences migration scripts for version v0.12.0 - pskl.UserSettings.migrate_to_v0_12(); - /** * When started from APP Engine, appEngineToken_ (Boolean) should be set on window.pskl */ diff --git a/src/js/utils/UserSettings.js b/src/js/utils/UserSettings.js index 92d28f3b..18530c63 100644 --- a/src/js/utils/UserSettings.js +++ b/src/js/utils/UserSettings.js @@ -126,20 +126,4 @@ } } }; - - // Migration script for version 11 to version 12. Initialize the GRID_ENABLED pref from - // the current GRID_WIDTH and update the stored grid width to 1 if it was set to 0. - // SHOULD BE REMOVED FOR RELEASE 13. - ns.UserSettings.migrate_to_v0_12 = function () { - var storedGridEnabled = ns.UserSettings.readFromLocalStorage_('GRID_ENABLED'); - if (typeof storedGridEnabled === 'undefined' || storedGridEnabled === null) { - var gridWidth = ns.UserSettings.get('GRID_WIDTH'); - ns.UserSettings.writeToLocalStorage_('GRID_ENABLED', gridWidth > 0); - } - - var storedGridWidth = ns.UserSettings.readFromLocalStorage_('GRID_WIDTH'); - if (storedGridWidth === 0) { - ns.UserSettings.writeToLocalStorage_('GRID_WIDTH', 1); - } - }; })();