[gnome-builder/wip/gtk4-port] plugins/eslint: remove unused settings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] plugins/eslint: remove unused settings
- Date: Tue, 12 Apr 2022 00:21:02 +0000 (UTC)
commit ae5acfff818e3fa22f2d2d0f3c608940489f4745
Author: Christian Hergert <chergert redhat com>
Date: Mon Apr 11 17:20:58 2022 -0700
plugins/eslint: remove unused settings
src/plugins/eslint/eslint_plugin.py | 20 --------------------
src/plugins/eslint/meson.build | 3 ---
.../org.gnome.builder.plugins.eslint.gschema.xml | 9 ---------
3 files changed, 32 deletions(-)
---
diff --git a/src/plugins/eslint/eslint_plugin.py b/src/plugins/eslint/eslint_plugin.py
index 073ba784c..81c2905c2 100644
--- a/src/plugins/eslint/eslint_plugin.py
+++ b/src/plugins/eslint/eslint_plugin.py
@@ -27,9 +27,6 @@ import json
from gi.repository import GObject
from gi.repository import Ide
-_ = Ide.gettext
-
-
SEVERITY_MAP = {
1: Ide.DiagnosticSeverity.WARNING,
2: Ide.DiagnosticSeverity.ERROR
@@ -85,20 +82,3 @@ class ESLintDiagnosticProvider(Ide.DiagnosticTool):
diagnostics.add(diagnostic)
except Exception as e:
Ide.warning('Failed to decode eslint json: {}'.format(e))
-
-class ESLintPreferencesAddin(GObject.Object, Ide.PreferencesAddin):
- def do_load(self, preferences):
- self.eslint = preferences.add_switch("code-insight",
- "diagnostics",
- "org.gnome.builder.plugins.eslint",
- "enable-eslint",
- None,
- "false",
- _("ESlint"),
- _("Enable the use of ESLint, which may execute code in your
project"),
- # translators: these are keywords used to search for preferences
- _("eslint javascript lint code execute execution"),
- 500)
-
- def do_unload(self, preferences):
- preferences.remove_id(self.eslint)
diff --git a/src/plugins/eslint/meson.build b/src/plugins/eslint/meson.build
index 754eb171c..2b4880c3b 100644
--- a/src/plugins/eslint/meson.build
+++ b/src/plugins/eslint/meson.build
@@ -2,9 +2,6 @@ if get_option('plugin_eslint')
install_data('eslint_plugin.py', install_dir: plugindir)
-install_data('org.gnome.builder.plugins.eslint.gschema.xml',
- install_dir: schema_dir)
-
configure_file(
input: 'eslint.plugin',
output: 'eslint.plugin',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]