From 6996b441d9d104bc6d7041b64362f4426425f600 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 25 Nov 2013 14:26:46 +0000 Subject: (svn r26107) -Codechange/cleanup: remove some coding bloat and simplify the driver factory instatiations --- src/music/music_driver.hpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/music/music_driver.hpp') 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 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; -- cgit v1.2.3-54-g00ecf