Skip to content

Commit de02f4b

Browse files
author
Ray Schamp
committed
refactor: remove LocalHelper
`LocalHelper` is unused currently, so remove it for simplicity BREAKING CHANGE: The private `localHelper` property has been removed
1 parent 8568414 commit de02f4b

File tree

3 files changed

+1
-50
lines changed

3 files changed

+1
-50
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"arraybuffer-loader": "^1.0.3",
2828
"base64-js": "1.2.1",
2929
"js-md5": "0.6.1",
30-
"localforage": "1.5.0",
3130
"nets": "3.2.0",
3231
"text-encoding": "0.6.4"
3332
},

src/LocalHelper.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/ScratchStorage.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const BuiltinHelper = require('./BuiltinHelper');
2-
const LocalHelper = require('./LocalHelper');
32
const WebHelper = require('./WebHelper');
43

54
const _Asset = require('./Asset');
@@ -12,8 +11,6 @@ class ScratchStorage {
1211

1312
this.builtinHelper = new BuiltinHelper(this);
1413
this.webHelper = new WebHelper(this);
15-
this.localHelper = new LocalHelper(this);
16-
1714
this.builtinHelper.registerDefaultAssets(this);
1815
}
1916

@@ -125,7 +122,7 @@ class ScratchStorage {
125122
*/
126123
load (assetType, assetId, dataFormat) {
127124
/** @type {Helper[]} */
128-
const helpers = [this.builtinHelper, this.localHelper, this.webHelper];
125+
const helpers = [this.builtinHelper, this.webHelper];
129126
const errors = [];
130127
let helperIndex = 0;
131128
dataFormat = dataFormat || assetType.runtimeFormat;

0 commit comments

Comments
 (0)