cmVSSetupHelper: Drop unused InstanceId field

Minimize the amount of information needed about a VS instance.
This commit is contained in:
Brad King
2021-10-20 13:50:08 -04:00
parent 3213e2595d
commit f5dfc788b8
2 changed files with 0 additions and 8 deletions

View File

@@ -152,13 +152,6 @@ bool cmVSSetupAPIHelper::GetVSInstanceInfo(
if (pInstance == NULL)
return false;
SmartBSTR bstrId;
if (SUCCEEDED(pInstance->GetInstanceId(&bstrId))) {
vsInstanceInfo.InstanceId = std::wstring(bstrId);
} else {
return false;
}
InstanceState state;
if (FAILED(pInstance->GetState(&state))) {
return false;

View File

@@ -84,7 +84,6 @@ private:
struct VSInstanceInfo
{
std::wstring InstanceId;
std::wstring VSInstallLocation;
std::wstring Version;
std::string VCToolsetVersion;