Simona Halep has called time on her career, and the impact of her doping case has been compared to that of Maria Sharapova's.