diff options
author | Chris Robinson <[email protected]> | 2018-11-15 23:55:23 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-15 23:55:23 -0800 |
commit | a727978eb9ea6c5839e87b7de86665fd47c6dc7e (patch) | |
tree | e5a63cf8a8801043b3df5ed836e8eb6bbde7954a /Alc/backends | |
parent | 7ef7477a139b5ca942d8a95ec24aeec331d4dd42 (diff) |
Remove unused declarations and definitions
Diffstat (limited to 'Alc/backends')
-rw-r--r-- | Alc/backends/base.cpp | 6 | ||||
-rw-r--r-- | Alc/backends/base.h | 50 |
2 files changed, 0 insertions, 56 deletions
diff --git a/Alc/backends/base.cpp b/Alc/backends/base.cpp index 340ca7ac..61c2fe90 100644 --- a/Alc/backends/base.cpp +++ b/Alc/backends/base.cpp @@ -90,9 +90,3 @@ void ALCbackend_unlock(ALCbackend *self) std::terminate(); } } - - -/* Base ALCbackendFactory method implementations. */ -void ALCbackendFactory_deinit(ALCbackendFactory* UNUSED(self)) -{ -} diff --git a/Alc/backends/base.h b/Alc/backends/base.h index a303f761..50da6f38 100644 --- a/Alc/backends/base.h +++ b/Alc/backends/base.h @@ -105,56 +105,6 @@ enum ALCbackend_Type { }; -struct ALCbackendFactoryVtable; - -struct ALCbackendFactory { - const struct ALCbackendFactoryVtable *vtbl; -}; - -void ALCbackendFactory_deinit(ALCbackendFactory *self); - -struct ALCbackendFactoryVtable { - ALCboolean (*const init)(ALCbackendFactory *self); - void (*const deinit)(ALCbackendFactory *self); - - ALCboolean (*const querySupport)(ALCbackendFactory *self, ALCbackend_Type type); - - void (*const probe)(ALCbackendFactory *self, enum DevProbe type, std::string *outnames); - - ALCbackend* (*const createBackend)(ALCbackendFactory *self, ALCdevice *device, ALCbackend_Type type); -}; - -#define DEFINE_ALCBACKENDFACTORY_VTABLE(T) \ -DECLARE_THUNK(T, ALCbackendFactory, ALCboolean, init) \ -DECLARE_THUNK(T, ALCbackendFactory, void, deinit) \ -DECLARE_THUNK1(T, ALCbackendFactory, ALCboolean, querySupport, ALCbackend_Type) \ -DECLARE_THUNK2(T, ALCbackendFactory, void, probe, enum DevProbe, std::string*) \ -DECLARE_THUNK2(T, ALCbackendFactory, ALCbackend*, createBackend, ALCdevice*, ALCbackend_Type) \ - \ -static const struct ALCbackendFactoryVtable T##_ALCbackendFactory_vtable = { \ - T##_ALCbackendFactory_init, \ - T##_ALCbackendFactory_deinit, \ - T##_ALCbackendFactory_querySupport, \ - T##_ALCbackendFactory_probe, \ - T##_ALCbackendFactory_createBackend, \ -} - - -ALCbackendFactory *ALCalsaBackendFactory_getFactory(void); -ALCbackendFactory *ALCcoreAudioBackendFactory_getFactory(void); -ALCbackendFactory *ALCossBackendFactory_getFactory(void); -ALCbackendFactory *ALCjackBackendFactory_getFactory(void); -ALCbackendFactory *ALCsolarisBackendFactory_getFactory(void); -ALCbackendFactory *SndioBackendFactory_getFactory(void); -ALCbackendFactory *ALCqsaBackendFactory_getFactory(void); -ALCbackendFactory *ALCdsoundBackendFactory_getFactory(void); -ALCbackendFactory *ALCwinmmBackendFactory_getFactory(void); -ALCbackendFactory *ALCportBackendFactory_getFactory(void); -ALCbackendFactory *ALCopenslBackendFactory_getFactory(void); -ALCbackendFactory *ALCwaveBackendFactory_getFactory(void); -ALCbackendFactory *ALCsdl2BackendFactory_getFactory(void); - - struct BackendFactory { virtual bool init() = 0; virtual void deinit() { } |