No functional changes Extracting code into two new functions in the dopesheet draw code to improve readability and reduce variable scopes. in addition to the extraction two if checks were negated to reduce indentation. the diff makes it look a bit convoluted, but it's just copy paste into functions Pull Request: https://projects.blender.org/blender/blender/pulls/110290