Skip to content

Commit

Permalink
[Core] Remove unused debug trace (#4590)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger committed Mar 18, 2024
1 parent aa2d590 commit c37c84f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Sofa/framework/Core/src/sofa/core/objectmodel/BaseData.cpp
Expand Up @@ -158,20 +158,16 @@ void BaseData::doDelInput(DDGNode* n)
void BaseData::update()
{
cleanDirty();
for(DDGLinkIterator it=inputs.begin(); it!=inputs.end(); ++it)
for (DDGNode* input : inputs)
{
(*it)->updateIfDirty();
input->updateIfDirty();
}

/// Check if there is a parent (so a predecessor in the DDG), if so
/// update the internal value.
const auto parent = parentData.resolvePathAndGetTarget();
if (parent)
{
#ifdef SOFA_DDG_TRACE
if (m_owner)
dmsg_warning(m_owner) << "Data " << m_name << ": update from parent " << parentBaseData->m_name;
#endif
updateValueFromLink(parent);
// If the value is dirty clean it
if(this->isDirty())
Expand Down

0 comments on commit c37c84f

Please sign in to comment.