mirror of
https://gitea.invidious.io/iv-org/shard-radix.git
synced 2024-08-15 00:43:21 +00:00
cleanup: remove old deprecation approach
Remove no longer used code.
This commit is contained in:
parent
cc7b59ec77
commit
c57ad82282
2 changed files with 0 additions and 26 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue