Shaykh Ahmed Zarruq (Allah have mercy on him) said,
Repentance means returning to the Truth (haqq) and abandoning whatever displeases Allah.
It is entering into the purely and saintly life by ceasing once and for all wrong actions and thoughts and making a strong resolution not to return to sin.
For this traveler (salik) should shun source of sin in place or time (or individuals that facilitate sinful activities).
Ahmad Zarruq, p280-1