cleanup: remove old deprecation approach

Remove no longer used code.
This commit is contained in:
Luis Lavena 2021-01-30 19:01:37 -03:00
parent cc7b59ec77
commit c57ad82282
2 changed files with 0 additions and 26 deletions

View file

@ -1,25 +1,5 @@
require "../spec_helper" 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 # Simple Payload class
record Payload record Payload

View file

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