diff options
| author | Mike McQuaid | 2017-04-24 11:45:32 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2017-04-24 11:45:32 +0100 | 
| commit | 6b0afa3e9c52f2d43432d7aeab53eb9e517ffe96 (patch) | |
| tree | ada804efcbac4f2732743e1f409986dca4434498 /Library/Homebrew/utils.rb | |
| parent | ceb1629ad7aeec4c9e9c264efb29b59a96f8556c (diff) | |
| download | brew-6b0afa3e9c52f2d43432d7aeab53eb9e517ffe96.tar.bz2 | |
Remove puts_hash, require pp
I wasn’t aware this existed when I created puts_hash so: may as well
remove it.
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 16 | 
1 files changed, 0 insertions, 16 deletions
| diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 5e0ad5916..edc540c45 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -526,19 +526,3 @@ def migrate_legacy_keg_symlinks_if_necessary    end    FileUtils.rm_rf legacy_pinned_kegs  end - -def puts_hash(hash, indent: 0) -  return hash unless hash.is_a? Hash -  hash.each do |key, value| -    indent_spaces = " " * (indent * 2) -    printf "#{indent_spaces}#{key}:" -    if value.is_a? Hash -      puts -      puts_hash(value, indent: indent+1) -    else -      puts " #{value}" -    end -  end -  hash -end -alias ph puts_hash | 
