Drop deleteStyle

This commit is contained in:
eight 2018-10-07 23:41:46 +08:00
parent 0489fb3b2f
commit f4651da8d8
2 changed files with 1 additions and 12 deletions

View File

@ -149,18 +149,6 @@ function filterStylesInternal({
: filtered; : filtered;
} }
function deleteStyle({id, notify = true}) {
id = Number(id);
return dbExec('delete', id).then(() => {
invalidateCache({deletedId: id});
if (notify) {
notifyAllTabs({method: 'styleDeleted', id});
}
return id;
});
}
function compileExclusionRegexps(exclusions) { function compileExclusionRegexps(exclusions) {
exclusions.forEach(exclusion => { exclusions.forEach(exclusion => {
if (!cachedStyles.exclusions.get(exclusion)) { if (!cachedStyles.exclusions.get(exclusion)) {

View File

@ -303,6 +303,7 @@ const styleManager = (() => {
enabled: data.enabled, enabled: data.enabled,
code code
}; };
// FIXME: memory leak
appliesTo.add(url); appliesTo.add(url);
} }
} }