Remove extra debug spew from thing.rb
This commit is contained in:
parent
e2f492f120
commit
6c00822523
1 changed files with 2 additions and 4 deletions
6
thing.rb
6
thing.rb
|
@ -22,8 +22,8 @@ end
|
|||
require './huffman'
|
||||
|
||||
$log = Logger.new(STDOUT)
|
||||
$log.level = Logger::DEBUG
|
||||
#$log.level = Logger::FATAL
|
||||
#$log.level = Logger::DEBUG
|
||||
$log.level = Logger::FATAL
|
||||
|
||||
$sentinal = "SENTINAL"
|
||||
|
||||
|
@ -272,7 +272,6 @@ def build_huffman_for_strings(strings)
|
|||
end
|
||||
# add on sentinal string
|
||||
i.times { paths << $sentinal }
|
||||
puts paths
|
||||
HuffmanEncoding.new paths
|
||||
end
|
||||
|
||||
|
@ -386,7 +385,6 @@ if $0 == __FILE__
|
|||
# size.
|
||||
|
||||
node_count = node_list.count + 1
|
||||
puts node_count
|
||||
file.write([node_count].pack("c"))
|
||||
|
||||
bit_file = BitWriter.new file
|
||||
|
|
Loading…
Reference in a new issue