Fix: unused getName

This commit is contained in:
eight 2017-11-01 08:44:37 +08:00
parent 45da3ff50e
commit 9dddbbba9f

View File

@ -41,18 +41,6 @@ var linterConfig = {
} : false; } : false;
}, },
getName(cmLintOption) {
if (!cmLintOption) {
return null;
}
for (const linter of ['csslint', 'stylelint']) {
if (cmLintOption.getAnnotations === CodeMirror.lint[linter]) {
return linter;
}
}
return null;
},
fallbackToDefaults(config, linter = linterConfig.getDefault()) { fallbackToDefaults(config, linter = linterConfig.getDefault()) {
if (config && Object.keys(config).length) { if (config && Object.keys(config).length) {
if (linter === 'stylelint') { if (linter === 'stylelint') {