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"
# 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