Small removal of unnecessary code.

git-svn-id: svn://localhost/ardour2/trunk@1036 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Taybin Rutkin 2006-10-31 16:12:05 +00:00
parent 186a5a2371
commit d99758ff37

View File

@ -221,15 +221,12 @@ XMLNode::child (const char *name) const
{
/* returns first child matching name */
static XMLNodeList retval;
XMLNodeConstIterator cur;
if (name == 0) {
return 0;
}
retval.erase(retval.begin(), retval.end());
for (cur = _children.begin(); cur != _children.end(); ++cur) {
if ((*cur)->name() == name) {
return *cur;