Remove uneeded functions.