cmVisualStudio10TargetGenerator: Remove unused VS-10-only code

Remove code that is not used since commit 8d6f015d59 (Drop Visual Studio
10 2010 generator, 2022-09-26, v3.25.0-rc1~78^2).
1 file changed