Removes useless methods