removed not needed variable, removed obsolete comments

This commit is contained in:
Andreas Preikschat 2011-06-12 14:13:04 +02:00
parent 869ab41cad
commit dc2bafaab9
2 changed files with 0 additions and 5 deletions

View File

@ -984,7 +984,6 @@ class BibleMediaItem(MediaManagerItem):
"""
bible = unicode(self.quickVersionComboBox.currentText())
search_results = self.plugin.manager.get_verses(bible, string, False, False)
results = []
if search_results:
versetext = u' '.join([verse.text for verse in search_results])
return [[string, versetext]]

View File

@ -139,8 +139,6 @@ class MediaMediaItem(MediaManagerItem):
self.mediaObject.clearQueue()
self.mediaObject.setCurrentSource(Phonon.MediaSource(filename))
if not self.mediaStateWait(Phonon.StoppedState):
# Due to string freeze, borrow a message from presentations
# This will be corrected in 1.9.6
critical_error_message_box(UiStrings().UnsupportedFile,
UiStrings().UnsupportedFile)
return False
@ -150,8 +148,6 @@ class MediaMediaItem(MediaManagerItem):
if not self.mediaStateWait(Phonon.PlayingState) \
or self.mediaObject.currentSource().type() \
== Phonon.MediaSource.Invalid:
# Due to string freeze, borrow a message from presentations
# This will be corrected in 1.9.6
self.mediaObject.stop()
critical_error_message_box(UiStrings().UnsupportedFile,
UiStrings().UnsupportedFile)