remove unused deps and functions.