Remove dangling code