mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 00:11:07 -06:00
cmVSSetupHelper: Drop unused InstanceId field
Minimize the amount of information needed about a VS instance.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -84,7 +84,6 @@ private:
|
||||
|
||||
struct VSInstanceInfo
|
||||
{
|
||||
std::wstring InstanceId;
|
||||
std::wstring VSInstallLocation;
|
||||
std::wstring Version;
|
||||
std::string VCToolsetVersion;
|
||||
|
||||
Reference in New Issue
Block a user