mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-12 20:39:49 -05: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)
|
if (pInstance == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
SmartBSTR bstrId;
|
|
||||||
if (SUCCEEDED(pInstance->GetInstanceId(&bstrId))) {
|
|
||||||
vsInstanceInfo.InstanceId = std::wstring(bstrId);
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
InstanceState state;
|
InstanceState state;
|
||||||
if (FAILED(pInstance->GetState(&state))) {
|
if (FAILED(pInstance->GetState(&state))) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ private:
|
|||||||
|
|
||||||
struct VSInstanceInfo
|
struct VSInstanceInfo
|
||||||
{
|
{
|
||||||
std::wstring InstanceId;
|
|
||||||
std::wstring VSInstallLocation;
|
std::wstring VSInstallLocation;
|
||||||
std::wstring Version;
|
std::wstring Version;
|
||||||
std::string VCToolsetVersion;
|
std::string VCToolsetVersion;
|
||||||
|
|||||||
Reference in New Issue
Block a user