Remove unused OpenALSoundManager::m_can_vorbis and EXT_vorbis check
authorJay Arndt <jayarn27182@windstream.net>
Sun, 29 Nov 2015 23:57:12 +0000 (17:57 -0600)
committerparamat <mat.gregory@virginmedia.com>
Tue, 1 Dec 2015 00:36:11 +0000 (00:36 +0000)
src/sound_openal.cpp

index 0c4ae88566560da77abe099e659850aaf09fc5dc..e2b6d937accfedbafeaf1dfe0b863b9b9b9afbb1 100644 (file)
@@ -269,7 +269,6 @@ private:
        OnDemandSoundFetcher *m_fetcher;
        ALCdevice *m_device;
        ALCcontext *m_context;
-       bool m_can_vorbis;
        int m_next_id;
        std::map<std::string, std::vector<SoundBuffer*> > m_buffers;
        std::map<int, PlayingSound*> m_sounds_playing;
@@ -280,7 +279,6 @@ public:
                m_fetcher(fetcher),
                m_device(NULL),
                m_context(NULL),
-               m_can_vorbis(false),
                m_next_id(1),
                m_is_initialized(false)
        {
@@ -295,14 +293,6 @@ public:
                        return;
                }
 
-               if(alcIsExtensionPresent(m_device, "EXT_vorbis")){
-                       infostream<<"Audio: Vorbis extension present"<<std::endl;
-                       m_can_vorbis = true;
-               } else{
-                       infostream<<"Audio: Vorbis extension NOT present"<<std::endl;
-                       m_can_vorbis = false;
-               }
-
                m_context = alcCreateContext(m_device, NULL);
                if(!m_context){
                        error = alcGetError(m_device);