cmInstallCommandArguments: Remove unreachable code-path

This commit is contained in:
Robert Maynard
2026-04-17 15:43:18 -04:00
parent 472eef80de
commit 84027b3863

View File

@@ -100,11 +100,7 @@ std::string const& cmInstallCommandArguments::GetComponent() const
if (this->GenericArguments) {
return this->GenericArguments->GetComponent();
}
if (!this->DefaultComponentName.empty()) {
return this->DefaultComponentName;
}
static std::string unspecifiedComponent = "Unspecified";
return unspecifiedComponent;
return this->DefaultComponentName;
}
std::string const& cmInstallCommandArguments::GetNamelinkComponent() const