[gnome-builder/wip/gtk4-port: 546/1774] plugins/stylelint: remove unused settings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 546/1774] plugins/stylelint: remove unused settings
- Date: Mon, 11 Jul 2022 22:31:15 +0000 (UTC)
commit b2965dfe72588aa9c0e1fc6f8ead6a67c3966fb9
Author: Christian Hergert <chergert redhat com>
Date: Mon Apr 11 16:01:00 2022 -0700
plugins/stylelint: remove unused settings
These aren't getting used anywhere so just remove the gschema.
src/plugins/stylelint/meson.build | 3 ---
.../org.gnome.builder.plugins.stylelint.gschema.xml | 9 ---------
src/plugins/stylelint/stylelint_plugin.py | 21 ---------------------
3 files changed, 33 deletions(-)
---
diff --git a/src/plugins/stylelint/meson.build b/src/plugins/stylelint/meson.build
index b437da190..396ebb688 100644
--- a/src/plugins/stylelint/meson.build
+++ b/src/plugins/stylelint/meson.build
@@ -2,9 +2,6 @@ if get_option('plugin_stylelint')
install_data('stylelint_plugin.py', install_dir: plugindir)
-install_data('org.gnome.builder.plugins.stylelint.gschema.xml',
- install_dir: schema_dir)
-
configure_file(
input: 'stylelint.plugin',
output: 'stylelint.plugin',
diff --git a/src/plugins/stylelint/stylelint_plugin.py b/src/plugins/stylelint/stylelint_plugin.py
index 6e0967ff5..4a0349111 100644
--- a/src/plugins/stylelint/stylelint_plugin.py
+++ b/src/plugins/stylelint/stylelint_plugin.py
@@ -28,9 +28,6 @@ import json
from gi.repository import GObject
from gi.repository import Ide
-_ = Ide.gettext
-
-
SEVERITY_MAP = {
"warning": Ide.DiagnosticSeverity.WARNING,
"error": Ide.DiagnosticSeverity.ERROR
@@ -64,21 +61,3 @@ class StylelintDiagnosticProvider(Ide.DiagnosticTool):
diagnostics.add(diagnostic)
except Exception as e:
Ide.warning('Failed to decode stylelint json: {}'.format(e))
-
-
-class StylelintPreferencesAddin(GObject.Object, Ide.PreferencesAddin):
- def do_load(self, preferences):
- self.stylelint = preferences.add_switch("code-insight",
- "diagnostics",
- "org.gnome.builder.plugins.stylelint",
- "enable-stylelint",
- None,
- "false",
- _("Stylelint"),
- _("Enable the use of Stylelint, which may execute code in your
project"),
- # translators: these are keywords used to search for preferences
- _("stylelint stylesheet lint code execute execution"),
- 500)
-
- def do_unload(self, preferences):
- preferences.remove_id(self.stylelint)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]