From what I can tell these are left over from Blender Internal render.
Test still pass locally.
Please pay attention also the node_shader_common file.
Readign commits suggest the code might be related to custom node trees.
However in Blender 3.0 or with the patch I do not see
how these functions are used for custom node trees.