Remove unused variables.
setParent() returns the old one.