summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-20 17:50:08 (GMT)
committerBrad King <brad.king@kitware.com>2021-10-29 15:52:57 (GMT)
commitf5dfc788b8bb455f7accc21a07d8a74f05651467 (patch)
tree5a2a529ebd59a44ce494987c9b618b100f565bd4 /Source
parent3213e2595da3ce75af489a63f53b05c5560aa547 (diff)
downloadCMake-f5dfc788b8bb455f7accc21a07d8a74f05651467.zip
CMake-f5dfc788b8bb455f7accc21a07d8a74f05651467.tar.gz
CMake-f5dfc788b8bb455f7accc21a07d8a74f05651467.tar.bz2
cmVSSetupHelper: Drop unused InstanceId field
Minimize the amount of information needed about a VS instance.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVSSetupHelper.cxx7
-rw-r--r--Source/cmVSSetupHelper.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/Source/cmVSSetupHelper.cxx b/Source/cmVSSetupHelper.cxx
index 1b67611..f1b22b9 100644
--- a/Source/cmVSSetupHelper.cxx
+++ b/Source/cmVSSetupHelper.cxx
@@ -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;
diff --git a/Source/cmVSSetupHelper.h b/Source/cmVSSetupHelper.h
index b2ba086..5a7daa2 100644
--- a/Source/cmVSSetupHelper.h
+++ b/Source/cmVSSetupHelper.h
@@ -84,7 +84,6 @@ private:
struct VSInstanceInfo
{
- std::wstring InstanceId;
std::wstring VSInstallLocation;
std::wstring Version;
std::string VCToolsetVersion;