Removed NET_2_1 conditional blocks from FileInfo. Fixes #19862.

Removed no longer required NET_2_1 conditional blocks.