env: remove unused functions.