I think the purpose of this was to avoid a variable when u_matdiffuse is not used.  Did you measure that it wasn't actually saving time?

-[Unknown]