d1962be44c removed the call to
`BKE_view_layer_active_object_get()`. It did leave some "supporting
code" around, which was necessary to make that call possible but now is
no longer needed.
No functional changes.
Pull Request: https://projects.blender.org/blender/blender/pulls/145977