remove the Agent static instance

This commit is contained in:
Stephen Birarda 2013-10-11 17:40:02 -07:00
parent 0eae0f129c
commit cdfb232078
2 changed files with 1 additions and 5 deletions

View file

@ -16,15 +16,13 @@
#include "Agent.h"
#include "voxels/VoxelScriptingInterface.h"
Agent* Agent::_staticInstance = NULL;
Agent::Agent(const unsigned char* dataBuffer, int numBytes) :
Assignment(dataBuffer, numBytes),
_shouldStop(false)
{
setStaticInstance(this);
}
void Agent::stop() {
_shouldStop = true;
}

View file

@ -30,8 +30,6 @@ signals:
void willSendAudioDataCallback();
void willSendVisualDataCallback();
private:
static void setStaticInstance(Agent* staticInstance);
static Agent* _staticInstance;
static QScriptValue AudioInjectorConstructor(QScriptContext *context, QScriptEngine *engine);
bool volatile _shouldStop;