From 74eff0f764e8c8ea7aa79f1be971006e54fcf0d1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 24 Dec 2014 21:06:49 -0800 Subject: [PATCH] Remove some unused context stuff --- src/context.cpp | 7 ------- src/context.h | 5 ----- 2 files changed, 12 deletions(-) diff --git a/src/context.cpp b/src/context.cpp index 3dcd172..db5dfde 100644 --- a/src/context.cpp +++ b/src/context.cpp @@ -235,7 +235,6 @@ void ALContext::setupExts() ALContext::ALContext(ALCcontext *context, ALDevice *device) : mContext(context), mDevice(device), mRefs(0), - mPosition(0.0f), mHasExt{false}, alGetSourcei64vSOFT(0), alGenEffects(0), alDeleteEffects(0), alIsEffect(0), @@ -502,18 +501,12 @@ void ALContext::setPosition(ALfloat x, ALfloat y, ALfloat z) { CheckContext(this); alListener3f(AL_POSITION, x, y, z); - mPosition[0] = x; - mPosition[1] = y; - mPosition[2] = z; } void ALContext::setPosition(const ALfloat *pos) { CheckContext(this); alListenerfv(AL_POSITION, pos); - mPosition[0] = pos[0]; - mPosition[1] = pos[1]; - mPosition[2] = pos[2]; } void ALContext::setVelocity(ALfloat x, ALfloat y, ALfloat z) diff --git a/src/context.h b/src/context.h index 3059d7d..787f4b9 100644 --- a/src/context.h +++ b/src/context.h @@ -58,8 +58,6 @@ private: RefCount mRefs; - Vector3 mPosition; - bool mHasExt[AL_EXTENSION_MAX]; std::once_flag mSetExts; @@ -118,9 +116,6 @@ public: void freeSource(ALSource *source); - const Vector3& getListenerPosition() const - { return mPosition; } - virtual Device *getDevice() final; virtual void destroy() final; -- 2.11.4.GIT