From 95c63955045063c9bafb4b1ccbf528114e189694 Mon Sep 17 00:00:00 2001 From: Michael Hashizume Date: Wed, 20 Dec 2023 10:37:22 -0800 Subject: [PATCH] Remove unused code Some conditional code was commented out in 2015 with b1fde14. The Rubocop Layout/LeadingCommentSpace cop flagged it as an issue but, because this hasn't been used for over eight years, this commit removes the code altogether. --- lib/puppet/application/lookup.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/puppet/application/lookup.rb b/lib/puppet/application/lookup.rb index a4cfc224a76..c43773a7ece 100644 --- a/lib/puppet/application/lookup.rb +++ b/lib/puppet/application/lookup.rb @@ -272,10 +272,6 @@ def help def main keys = command_line.args - #unless options[:node] - # raise "No node was given via the '--node' flag for the scope of the lookup.\n#{RUN_HELP}" - #end - if (options[:sort_merged_arrays] || options[:merge_hash_arrays] || options[:prefix]) && options[:merge] != 'deep' raise _("The options %{deep_merge_opts} are only available with '--merge deep'\n%{run_help}") % { deep_merge_opts: DEEP_MERGE_OPTIONS, run_help: RUN_HELP } end