function removeLinks( tree ) {
	var children;
	var child;
	var found;
	var start;
	var end;
	var i;

	children = tree.children;
	for ( i = 0; i < children.length; i++ ) {
		child = children[ i ];
		if ( child.type === 'html' ) {
			if ( child.value === '<!-- <toc-links> -->' ) {
				start = i;
				found = true;
			} else if ( child.value === '<!-- </toc-links> -->' ) {
				end = i;
				break;
			}
		}
	}
	children.splice( start+1, end-start-1 );
	return found;
}
Removes all table of contents links from the link section by modifying the root node in-place.

@private
@param {Node} tree - root node of the AST
@returns {boolean} `true` if the link section included a <toc-links> pseudo-section, `false` otherwise