Remove needless functions.