TrackAsset UpdateDuration() replacement?

Hi,
once I had UpdateDuration() for track assets, no it has been removed.
How does it work now?
thx

The duration of a track is automatically set based the clips, markers, and animated parameters on the track.

Hi, I had some code that runs inside that method.
Where should I put that now?

(UpdateDuration() is called whenever the clip si resized or moved)