remove dangling def