summaryrefslogtreecommitdiff
path: root/src/music/music_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/music/music_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/music/music_driver.hpp')
-rw-r--r--src/music/music_driver.hpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/music/music_driver.hpp b/src/music/music_driver.hpp
index 70a1e37a5..453d05102 100644
--- a/src/music/music_driver.hpp
+++ b/src/music/music_driver.hpp
@@ -41,25 +41,6 @@ public:
virtual void SetVolume(byte vol) = 0;
};
-/** Base of the factory for the music drivers. */
-class MusicDriverFactoryBase: public DriverFactoryBase {
-};
-
-/**
- * Factory for the music drivers.
- * @tparam T The type of the music factory to register.
- */
-template <class T>
-class MusicDriverFactory: public MusicDriverFactoryBase {
-public:
- MusicDriverFactory() { this->RegisterDriver(((T *)this)->GetName(), Driver::DT_MUSIC, ((T *)this)->priority); }
-
- /**
- * Get the long, human readable, name for the Driver-class.
- */
- const char *GetName();
-};
-
extern MusicDriver *_music_driver;
extern char *_ini_musicdriver;