Skip to content

Commit

Permalink
Hide definition of ConstrainedGroup::containConstraint() when it's no…
Browse files Browse the repository at this point in the history
…t in debug mode
  • Loading branch information
jslee02 committed Jan 15, 2016
1 parent 43585ea commit 8c994dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dart/constraint/ConstrainedGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@ void ConstrainedGroup::removeAllConstraints()
}

//==============================================================================
#ifndef NDEBUG
bool ConstrainedGroup::containConstraint(
const ConstConstraintBasePtr& _constraint) const
{
return std::find(mConstraints.begin(), mConstraints.end(), _constraint)
!= mConstraints.end();
}
#endif

//==============================================================================
size_t ConstrainedGroup::getTotalDimension() const
Expand Down

0 comments on commit 8c994dc

Please sign in to comment.