Remove an unused method

Best not to design something we don't yet know what's needed from it.
This commit is contained in:
Chris Robinson 2012-05-02 13:59:03 -07:00
parent 144d52cf49
commit 1627206d56
2 changed files with 0 additions and 15 deletions

View file

@ -401,18 +401,6 @@ namespace MWSound
return isPlaying(ptr, soundId); 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) void SoundManager::updateRegionSound(float duration)
{ {

View file

@ -131,9 +131,6 @@ namespace MWSound
bool getSoundPlaying(MWWorld::Ptr reference, const std::string& soundId) const; bool getSoundPlaying(MWWorld::Ptr reference, const std::string& soundId) const;
///< Is the given sound currently playing on the given object? ///< 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); void update(float duration);
}; };
} }