Remove useless methods.