Remove endOfTrack

Remove unuse var endOfTrack