Vanity

Is vanity (specifically in the sense of attractiveness) solely a function of sexual competition and for purposes of arousal? Would we find a lack of vanity in a society of equally well-off (to prevent status competitions for non-sexual goods) asexual beings?