Cleaning of unused functions

We remove the unused functions (some of them throw errors, because WP
tries to instantiate undefined functions)