summaryrefslogtreecommitdiff
path: root/src/sound/sound_driver.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-25 14:26:46 +0000
committerrubidium <rubidium@openttd.org>2013-11-25 14:26:46 +0000
commit6996b441d9d104bc6d7041b64362f4426425f600 (patch)
tree074989fd03a7f672e137423688c40d1efc466a95 /src/sound/sound_driver.hpp
parenta399fc667ce506abcdcfd853d1ad58f0bb8dbb4f (diff)
downloadopenttd-6996b441d9d104bc6d7041b64362f4426425f600.tar.xz
(svn r26107) -Codechange/cleanup: remove some coding bloat and simplify the driver factory instatiations
Diffstat (limited to 'src/sound/sound_driver.hpp')
-rw-r--r--src/sound/sound_driver.hpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/sound/sound_driver.hpp b/src/sound/sound_driver.hpp
index 56664e6ad..badfabd93 100644
--- a/src/sound/sound_driver.hpp
+++ b/src/sound/sound_driver.hpp
@@ -21,25 +21,6 @@ public:
virtual void MainLoop() {}
};
-/** Base of the factory for the sound drivers. */
-class SoundDriverFactoryBase: public DriverFactoryBase {
-};
-
-/**
- * Factory for the sound drivers.
- * @tparam T The type of the sound factory to register.
- */
-template <class T>
-class SoundDriverFactory: public SoundDriverFactoryBase {
-public:
- SoundDriverFactory() { this->RegisterDriver(((T *)this)->GetName(), Driver::DT_SOUND, ((T *)this)->priority); }
-
- /**
- * Get the long, human readable, name for the Driver-class.
- */
- const char *GetName();
-};
-
extern SoundDriver *_sound_driver;
extern char *_ini_sounddriver;