From 3783bb5e46f4cb0ba40be8181777608e791cc95a Mon Sep 17 00:00:00 2001
From: Philippe Normand <philn@igalia.com>
Date: Sat, 14 Apr 2018 11:27:48 +0100
Subject: [PATCH 1/2] debug-viewer: remove broken/unimplemented plugins

---
 .../GstDebugViewer/Plugins/ColorizeRows.py    | 65 -----------------
 .../GstDebugViewer/Plugins/FileProperties.py  | 70 -------------------
 2 files changed, 135 deletions(-)
 delete mode 100644 debug-viewer/GstDebugViewer/Plugins/ColorizeRows.py
 delete mode 100644 debug-viewer/GstDebugViewer/Plugins/FileProperties.py

diff --git a/debug-viewer/GstDebugViewer/Plugins/ColorizeRows.py b/debug-viewer/GstDebugViewer/Plugins/ColorizeRows.py
deleted file mode 100644
index 6f2b690..0000000
--- a/debug-viewer/GstDebugViewer/Plugins/ColorizeRows.py
+++ /dev/null
@@ -1,65 +0,0 @@
-# -*- coding: utf-8; mode: python; -*-
-#
-#  GStreamer Debug Viewer - View and analyze GStreamer debug log files
-#
-#  Copyright (C) 2007 René Stadler <mail@renestadler.de>
-#
-#  This program is free software; you can redistribute it and/or modify it
-#  under the terms of the GNU General Public License as published by the Free
-#  Software Foundation; either version 3 of the License, or (at your option)
-#  any later version.
-#
-#  This program is distributed in the hope that it will be useful, but WITHOUT
-#  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-#  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
-#  more details.
-#
-#  You should have received a copy of the GNU General Public License along with
-#  this program.  If not, see <http://www.gnu.org/licenses/>.
-
-"""GStreamer Debug Viewer row colorization plugin."""
-
-from GstDebugViewer.Plugins import FeatureBase, PluginBase
-
-
-class ColorizeLevels (FeatureBase):
-
-    def attach(self, window):
-
-        pass
-
-    def detach(self, window):
-
-        pass
-
-
-class LevelColorSentinel (object):
-
-    def processor(self, proc):
-
-        for row in proc:
-
-            yield None
-
-
-class ColorizeCategories (FeatureBase):
-
-    def attach(self, window):
-
-        pass
-
-    def detach(self, window):
-
-        pass
-
-
-class CategoryColorSentinel (object):
-
-    def processor(self):
-
-        pass
-
-
-class Plugin (PluginBase):
-
-    features = (ColorizeLevels, ColorizeCategories)
diff --git a/debug-viewer/GstDebugViewer/Plugins/FileProperties.py b/debug-viewer/GstDebugViewer/Plugins/FileProperties.py
deleted file mode 100644
index f43dbf5..0000000
--- a/debug-viewer/GstDebugViewer/Plugins/FileProperties.py
+++ /dev/null
@@ -1,70 +0,0 @@
-# -*- coding: utf-8; mode: python; -*-
-#
-#  GStreamer Debug Viewer - View and analyze GStreamer debug log files
-#
-#  Copyright (C) 2007 René Stadler <mail@renestadler.de>
-#
-#  This program is free software; you can redistribute it and/or modify it
-#  under the terms of the GNU General Public License as published by the Free
-#  Software Foundation; either version 3 of the License, or (at your option)
-#  any later version.
-#
-#  This program is distributed in the hope that it will be useful, but WITHOUT
-#  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-#  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
-#  more details.
-#
-#  You should have received a copy of the GNU General Public License along with
-#  this program.  If not, see <http://www.gnu.org/licenses/>.
-
-"""GStreamer Debug Viewer file properties plugin."""
-
-import logging
-
-from GstDebugViewer.Plugins import FeatureBase, PluginBase
-
-from gettext import gettext as _
-from gi.repository import Gtk
-
-
-class FilePropertiesSentinel (object):
-
-    pass
-
-
-class FilePropertiesDialog (Gtk.Dialog):
-
-    pass
-
-
-class FilePropertiesFeature (FeatureBase):
-
-    def __init__(self, *a, **kw):
-
-        self.action_group = Gtk.ActionGroup("FilePropertiesActions")
-        self.action_group.add_actions(
-            [("show-file-properties", Gtk.STOCK_PROPERTIES,
-              _("_Properties"), "<Ctrl>P")])
-
-    def attach(self, window):
-
-        ui = window.ui_manager
-        ui.insert_action_group(self.action_group, 0)
-
-        self.merge_id = ui.new_merge_id()
-        ui.add_ui(self.merge_id, "/menubar/FileMenu/FileMenuAdditions",
-                  "FileProperties", "show-file-properties",
-                  Gtk.UIManagerItemType.MENUITEM, False)
-
-        handler = self.handle_action_activate
-        self.action_group.get_action(
-            "show-file-properties").connect("activate", handler)
-
-    def handle_action_activate(self, action):
-
-        pass
-
-
-class Plugin (PluginBase):
-
-    features = (FilePropertiesFeature,)
-- 
2.17.0

