summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-02 00:19:01 +0900
committergit <svn-admin@ruby-lang.org>2023-07-01 15:30:21 +0000
commit765a19ab593b481f262a07be5d88484f820da3c2 (patch)
treef93e547e1d86402e967a022cdb4367762d8d0bef /ext
parent08b3fb11524e6cde453476f24ac80fd60457dfef (diff)
[ruby/psych] Remove private methods unused since #487
https://github.com/ruby/psych/commit/902c292f26
Diffstat (limited to 'ext')
-rw-r--r--ext/psych/lib/psych.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/ext/psych/lib/psych.rb b/ext/psych/lib/psych.rb
index 4a2ab58514..9e21325cff 100644
--- a/ext/psych/lib/psych.rb
+++ b/ext/psych/lib/psych.rb
@@ -694,21 +694,6 @@ module Psych
dump_tags[klass] = tag
end
- # Workaround for emulating `warn '...', uplevel: 1` in Ruby 2.4 or lower.
- def self.warn_with_uplevel(message, uplevel: 1)
- at = parse_caller(caller[uplevel]).join(':')
- warn "#{at}: #{message}"
- end
-
- def self.parse_caller(at)
- if /^(.+?):(\d+)(?::in `.*')?/ =~ at
- file = $1
- line = $2.to_i
- [file, line]
- end
- end
- private_class_method :warn_with_uplevel, :parse_caller
-
class << self
if defined?(Ractor)
require 'forwardable'