summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-08-21 08:23:32 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-08-21 08:24:00 (GMT)
commit7fd66adfe9f3a92cd55e70b7478432d1f9030c4b (patch)
treeeeb3fa95211c61f9e46572693df82aa1529da55d
parentbbb8227780c0faff81cab2ff91f4418c04b72ad1 (diff)
downloadswift-7fd66adfe9f3a92cd55e70b7478432d1f9030c4b.zip
swift-7fd66adfe9f3a92cd55e70b7478432d1f9030c4b.tar.bz2
Revert "Added SoundPlayer::isAvailable."
-rw-r--r--Swift/Controllers/SoundPlayer.h1
-rw-r--r--Swift/QtUI/QtSoundPlayer.cpp4
-rw-r--r--Swift/QtUI/QtSoundPlayer.h1
3 files changed, 0 insertions, 6 deletions
diff --git a/Swift/Controllers/SoundPlayer.h b/Swift/Controllers/SoundPlayer.h
index 1d7f94d..b71d759 100644
--- a/Swift/Controllers/SoundPlayer.h
+++ b/Swift/Controllers/SoundPlayer.h
@@ -12,6 +12,5 @@ namespace Swift {
virtual ~SoundPlayer() {};
enum SoundEffect{MessageReceived};
virtual void playSound(SoundEffect sound) = 0;
- virtual bool isAvailable() const = 0;
};
}
diff --git a/Swift/QtUI/QtSoundPlayer.cpp b/Swift/QtUI/QtSoundPlayer.cpp
index 9860bc2..7fd6564 100644
--- a/Swift/QtUI/QtSoundPlayer.cpp
+++ b/Swift/QtUI/QtSoundPlayer.cpp
@@ -34,8 +34,4 @@ void QtSoundPlayer::playSound(const String& soundResource) {
}
}
-bool QtSoundPlayer::isAvailable() const {
- return QSound::isAvailable();
-}
-
}
diff --git a/Swift/QtUI/QtSoundPlayer.h b/Swift/QtUI/QtSoundPlayer.h
index da6fdda..21ad8bb 100644
--- a/Swift/QtUI/QtSoundPlayer.h
+++ b/Swift/QtUI/QtSoundPlayer.h
@@ -20,7 +20,6 @@ namespace Swift {
QtSoundPlayer(ApplicationPathProvider* applicationPathProvider);
void playSound(SoundEffect sound);
- bool isAvailable() const;
private:
void playSound(const String& soundResource);