[pitivi] effects: Remove dubious 'aware' parameter



commit 32f3e83ba5df1c103889383f5742794e5eb0656f
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Tue Sep 30 00:57:53 2014 +0200

    effects: Remove dubious 'aware' parameter

 pitivi/effects.py |   20 ++++++--------------
 1 files changed, 6 insertions(+), 14 deletions(-)
---
diff --git a/pitivi/effects.py b/pitivi/effects.py
index a10e0aa..66665bb 100644
--- a/pitivi/effects.py
+++ b/pitivi/effects.py
@@ -262,16 +262,11 @@ class EffectsManager(object):
         uselessWords = re.compile(" |".join([video, audio, audio.lower(), effect]))
         return uselessWords.sub("", element_factory.get_longname()).title()
 
-    def getVideoCategories(self, aware=True):
+    def getVideoCategories(self):
         """
-        @param aware: C{True} if you want it to return only categories on which
-            there are effects on the system, else C{False}
-        @type aware: C{bool}
-        @return: All video effect categories names C{str} that are available
-            on the system if it has been filled earlier, if it hasen't it will
-            just return all categories
+        Get all video effect categories names.
         """
-        if not self._video_categories or not aware:
+        if not self._video_categories:
             for category in VIDEO_EFFECTS_CATEGORIES:
                 self._video_categories.add(category[0])
         ret = list(self._video_categories)
@@ -283,14 +278,11 @@ class EffectsManager(object):
 
     video_categories = property(getVideoCategories)
 
-    def getAudioCategories(self, aware=True):
+    def getAudioCategories(self):
         """
-        @param aware: C{True} if you want it to return only categories on
-            which there are effects on the system, else C{False}
-        @type aware: C{bool}
-        @return: All audio effect categories names C{str}
+        Get all audio effect categories names.
         """
-        if not self._audio_categories or not aware:
+        if not self._audio_categories:
             for category in AUDIO_EFFECTS_CATEGORIES:
                 self._audio_categories.add(category[0])
         ret = list(self._audio_categories)


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