[pitivi] clipproperties: Remove unused obsolete selected_effects field



commit f16a35bdd522ea481e7910c0fcadd891f448f128
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Thu Dec 8 16:45:42 2016 +0100

    clipproperties: Remove unused obsolete selected_effects field
    
    Reviewed-by: Thibault Saunier <tsaunier gnome org>
    Differential Revision: https://phabricator.freedesktop.org/D1540

 pitivi/clipproperties.py |    8 --------
 pitivi/utils/timeline.py |   13 -------------
 2 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/pitivi/clipproperties.py b/pitivi/clipproperties.py
index 74aa5ab..756de9a 100644
--- a/pitivi/clipproperties.py
+++ b/pitivi/clipproperties.py
@@ -120,7 +120,6 @@ class EffectProperties(Gtk.Expander, Loggable):
 
         self._project = None
         self._selection = None
-        self.selected_effects = []
         self.clips = []
         self._effect_config_ui = None
         self.effects_properties_manager = EffectsPropertiesManager(app)
@@ -253,7 +252,6 @@ class EffectProperties(Gtk.Expander, Loggable):
         if project:
             self._selection = project.ges_timeline.ui.selection
             self._selection.connect('selection-changed', self._selectionChangedCb)
-            self.selected_effects = self._selection.getSelectedEffects()
         self.__updateAll()
 
     def _selectionChangedCb(self, selection):
@@ -261,8 +259,6 @@ class EffectProperties(Gtk.Expander, Loggable):
             clip.disconnect_by_func(self._trackElementAddedCb)
             clip.disconnect_by_func(self._trackElementRemovedCb)
 
-        self.selected_effects = selection.getSelectedEffects()
-
         if selection:
             self.clips = list(selection.selected)
             for clip in self.clips:
@@ -276,8 +272,6 @@ class EffectProperties(Gtk.Expander, Loggable):
 
     def _trackElementAddedCb(self, unused_clip, track_element):
         if isinstance(track_element, GES.BaseEffect):
-            selec = self._selection.getSelectedEffects()
-            self.selected_effects = selec
             self.__updateAll()
             for path, row in enumerate(self.storemodel):
                 if row[COL_TRACK_EFFECT] == track_element:
@@ -286,8 +280,6 @@ class EffectProperties(Gtk.Expander, Loggable):
 
     def _trackElementRemovedCb(self, unused_clip, track_element):
         if isinstance(track_element, GES.BaseEffect):
-            selec = self._selection.getSelectedEffects()
-            self.selected_effects = selec
             self.__updateAll()
 
     def _removeEffectCb(self, unused_action, unused_param):
diff --git a/pitivi/utils/timeline.py b/pitivi/utils/timeline.py
index bd1c0b8..42a38dc 100644
--- a/pitivi/utils/timeline.py
+++ b/pitivi/utils/timeline.py
@@ -175,19 +175,6 @@ class Selection(GObject.Object, Loggable):
 
         return selected
 
-    def getSelectedEffects(self):
-        """Returns the list of effects contained in this selection.
-
-        Returns:
-            List[GES.BaseEffect]
-        """
-        effects = []
-        for clip in self.selected:
-            for element in clip.get_children(False):
-                if isinstance(element, GES.BaseEffect):
-                    effects.append(element)
-        return effects
-
     def getSingleClip(self, clip_type):
         """Returns the single-selected clip, if any.
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]