My guess is the 30 or 50, as they're the only other routes besides the 40 which have that diagonal angle of travel at the east end.
According to Transit Toronto, 50 years ago the late evening frequency on the 30 was 40 minutes, while no frequency is given for the 50, so the latter is my guess.