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;
}
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) {
exclusions.forEach(exclusion => {
if (!cachedStyles.exclusions.get(exclusion)) {

View File

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