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'
|
require './huffman'
|
||||||
|
|
||||||
$log = Logger.new(STDOUT)
|
$log = Logger.new(STDOUT)
|
||||||
$log.level = Logger::DEBUG
|
#$log.level = Logger::DEBUG
|
||||||
#$log.level = Logger::FATAL
|
$log.level = Logger::FATAL
|
||||||
|
|
||||||
$sentinal = "SENTINAL"
|
$sentinal = "SENTINAL"
|
||||||
|
|
||||||
|
@ -272,7 +272,6 @@ def build_huffman_for_strings(strings)
|
||||||
end
|
end
|
||||||
# add on sentinal string
|
# add on sentinal string
|
||||||
i.times { paths << $sentinal }
|
i.times { paths << $sentinal }
|
||||||
puts paths
|
|
||||||
HuffmanEncoding.new paths
|
HuffmanEncoding.new paths
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -386,7 +385,6 @@ if $0 == __FILE__
|
||||||
# size.
|
# size.
|
||||||
|
|
||||||
node_count = node_list.count + 1
|
node_count = node_list.count + 1
|
||||||
puts node_count
|
|
||||||
file.write([node_count].pack("c"))
|
file.write([node_count].pack("c"))
|
||||||
|
|
||||||
bit_file = BitWriter.new file
|
bit_file = BitWriter.new file
|
||||||
|
|
Loading…
Reference in a new issue