Merge branch 'remove-dead-code'

This commit is contained in:
Luis Lavena 2021-01-30 19:11:47 -03:00
commit 97b16625a4
2 changed files with 0 additions and 26 deletions

View File

@ -1,25 +1,5 @@
require "../spec_helper"
# Silence deprecation warnings when running specs and allow
# capture them for inspection.
module Radix
class Tree(T)
@show_deprecations = false
@stderr : IO::Memory?
def show_deprecations!
@show_deprecations = true
end
private def deprecation(message)
if @show_deprecations
@stderr ||= IO::Memory.new
@stderr.not_nil!.puts message
end
end
end
end
# Simple Payload class
record Payload

View File

@ -462,11 +462,5 @@ module Radix
(!different) &&
(!key_reader.has_next? || _check_markers(key_reader.current_char))
end
# :nodoc:
private def deprecation(message : String)
STDERR.puts message
STDERR.flush
end
end
end