From 5c3b615aee3a3687055f3a00457914edf32fd9e1 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 16 Feb 2019 18:36:44 -0500 Subject: [PATCH] remove unused :which parameter to Environment#wait_for_threaded_commands --- lib/rscons/environment.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/rscons/environment.rb b/lib/rscons/environment.rb index d596b52..13555bb 100644 --- a/lib/rscons/environment.rb +++ b/lib/rscons/environment.rb @@ -662,17 +662,13 @@ module Rscons # # @param options [Hash] # Options. - # @option options [Set, Array] :which - # Which {ThreadedCommand} objects to wait for. If not specified, this - # method will wait for any. # @option options [Boolean] :nonblock # Set to true to not block. # # @return [ThreadedCommand, nil] # The {ThreadedCommand} object that is finished. def wait_for_threaded_commands(options = {}) - options[:which] ||= @threaded_commands - threads = options[:which].map(&:thread) + threads = @threaded_commands.map(&:thread) if finished_thread = find_finished_thread(threads, options[:nonblock]) threaded_command = @threaded_commands.find do |tc| tc.thread == finished_thread