From: martinahansen Date: Mon, 30 May 2011 08:46:04 +0000 (+0000) Subject: removed unused code from find_adaptor X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c3e9526082e228eef6a597771063c136ffc57948;p=biopieces.git removed unused code from find_adaptor git-svn-id: http://biopieces.googlecode.com/svn/trunk@1443 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/bp_bin/find_adaptor b/bp_bin/find_adaptor index be8a0c2..b550e63 100755 --- a/bp_bin/find_adaptor +++ b/bp_bin/find_adaptor @@ -48,37 +48,6 @@ class PatScan pat.write(@file_pattern) end -# def run -# child_count = 0 -# -# @files_fasta.each do |file| -# if fork -# Process.wait if ( child_count += 1 ) >= @cpus -# else -# command = command_compile(file) -# system(command) -# raise PatScanError, "Command failed: #{command}" unless $?.success? -# exit -# end -# end -# end - -# def run -# child_count = 0 -# -# @files_fasta.each do |file| -# Thread.pass while child_count >= @cpus -# child_count += 1 -# -# Thread.new do -# command = command_compile(file) -# system(command) -# raise PatScanError, "Command failed: #{command}" unless $?.success? -# child_count -= 1 -# end -# end -# end - def run child_count = 0 ch_mutex = Mutex.new