From 84027b38638647f5771087600266c133b3ec07c6 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Fri, 17 Apr 2026 15:43:18 -0400 Subject: [PATCH] cmInstallCommandArguments: Remove unreachable code-path --- Source/cmInstallCommandArguments.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Source/cmInstallCommandArguments.cxx b/Source/cmInstallCommandArguments.cxx index 23b38f6c9c..b0950e0d7d 100644 --- a/Source/cmInstallCommandArguments.cxx +++ b/Source/cmInstallCommandArguments.cxx @@ -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