Removing a useless method