Remove an unused method

Best not to design something we don't yet know what's needed from it.
actorid
Chris Robinson 13 years ago
parent 144d52cf49
commit 1627206d56

@ -401,18 +401,6 @@ namespace MWSound
return isPlaying(ptr, soundId);
}
void SoundManager::updateObject(MWWorld::Ptr ptr)
{
const ESM::Position &pos = ptr.getCellRef().pos;
const Ogre::Vector3 objpos(pos.pos[0], pos.pos[1], pos.pos[2]);
SoundMap::iterator snditer = mActiveSounds.begin();
while(snditer != mActiveSounds.end())
{
if(snditer->second.first == ptr)
snditer->first->setPosition(objpos);
snditer++;
}
}
void SoundManager::updateRegionSound(float duration)
{

@ -131,9 +131,6 @@ namespace MWSound
bool getSoundPlaying(MWWorld::Ptr reference, const std::string& soundId) const;
///< Is the given sound currently playing on the given object?
void updateObject(MWWorld::Ptr reference);
///< Update the position of all sounds connected to the given object.
void update(float duration);
};
}

Loading…
Cancel
Save