diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2009-12-02 17:03:48 (GMT) |
---|---|---|
committer | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2009-12-08 13:07:35 (GMT) |
commit | 8e21fc62fe40c8e393007516958c216ad8dbd629 (patch) | |
tree | d040816927cafa1e20397d785f59e4bb6cf84b44 /src/3rdparty | |
parent | fe5b275bfab1605da3ee95b6eb1d976aecb0a8a8 (diff) | |
download | Qt-8e21fc62fe40c8e393007516958c216ad8dbd629.zip Qt-8e21fc62fe40c8e393007516958c216ad8dbd629.tar.gz Qt-8e21fc62fe40c8e393007516958c216ad8dbd629.tar.bz2 |
Removed dead code from Phonon MMF backend
The following source types are handled in MediaObject::createPlayer
Invalid, Disc, Stream, Empty
The code removed in this patch is therefore never executed.
Reviewed-by: Frans Englich
Diffstat (limited to 'src/3rdparty')
-rw-r--r-- | src/3rdparty/phonon/mmf/abstractmediaplayer.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp b/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp index 344413d..544762a 100644 --- a/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp +++ b/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp @@ -251,19 +251,9 @@ void MMF::AbstractMediaPlayer::open(const MediaSource &source, RFile& file) break; } - case MediaSource::Invalid: - case MediaSource::Disc: - case MediaSource::Stream: - TRACE_0("Error opening source: type not supported"); - errorMessage = tr("Error opening source: type not supported"); - break; - - case MediaSource::Empty: - TRACE_0("Empty source - doing nothing"); - TRACE_EXIT_0(); - return; + // Other source types are handled in MediaObject::createPlayer - // Protection against adding new media types and forgetting to update this switch + // Protection against adding new media types and forgetting to update this switch default: TRACE_PANIC(InvalidMediaTypePanic); } |