]> git.cworth.org Git - sup/commitdiff
remove spurious logging from completion code
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 30 Dec 2007 20:16:52 +0000 (12:16 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 30 Dec 2007 20:16:52 +0000 (12:16 -0800)
lib/sup/buffer.rb

index 4cab8bb7a98bedaba18c93883271affb71960428..fa1afe623592aeadf26e985186967bb2c2b91f91 100644 (file)
@@ -420,10 +420,8 @@ EOS
   def ask_many_emails_with_completions domain, question, completions, default=nil
     ask domain, question, default do |partial|
       prefix, target = partial.split_on_commas_with_remainder
-      Redwood::log "before: prefix #{prefix.inspect}, target #{target.inspect}"
       target ||= prefix.pop || ""
       prefix = prefix.join(", ") + (prefix.empty? ? "" : ", ")
-      Redwood::log "after: prefix #{prefix.inspect}, target #{target.inspect}"
       completions.select { |x| x =~ /^#{target}/i }.map { |x| [prefix + x, x] }
     end
   end