parent = container; while (parent != NULL) { --(parent->numChildrenTotal); parent=parent->parent; } if ((nx != NULL) && (HT_IsContainer(nx)))
if (HT_IsContainer(nx))
deleteContainerItem (HT_Resource container, RDF_Resource item){	HT_Resource		nc, pr, parent, nx = NULL;	nc = container->child;	pr = nc;	while (nc != NULL)	{		if (nc->node == item)		{			nx = nc;			/* removeHTFromHash(container->view->pane, nx); */			if (nc == pr)			{				container->child = nc->next;			}			else			{				pr->next = nc->next;			}			break;		}	pr = nc;	nc = nc->next;	}	if (nx == NULL) return;	--container->numChildren;  	parent = container;	while (parent != NULL)	{		--(parent->numChildrenTotal);		parent=parent->parent;	}	if ((nx != NULL) && (HT_IsContainer(nx)))	{		deleteHTSubtree(nx);	}	if (nx)	{		deleteHTNode(nx);	}	if (gBatchUpdate != true)	{		refreshItemList(container, HT_EVENT_VIEW_REFRESH);	}}