summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-03-10 11:09:02 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-03-27 10:10:44 +0900
commite2e867de11cec54ed508de2d6659be26b73cdb31 (patch)
tree5feafc1efe2f3fdab697d89cc76f8598e167c8a0
parentaf66b0a291ce0639ef39952f6d4ffbc13eaaa6e6 (diff)
downloadpsych-e2e867de11cec54ed508de2d6659be26b73cdb31.zip
Remove Psych.tagurize
-rw-r--r--lib/psych/deprecated.rb6
-rw-r--r--test/psych/test_deprecated.rb6
2 files changed, 0 insertions, 12 deletions
diff --git a/lib/psych/deprecated.rb b/lib/psych/deprecated.rb
index 34236ef..8046ba4 100644
--- a/lib/psych/deprecated.rb
+++ b/lib/psych/deprecated.rb
@@ -8,12 +8,6 @@ module Psych
attr_accessor :taguri
attr_accessor :to_yaml_style
end
-
- def self.tagurize thing
- warn "#{caller[0]}: add_private_type is deprecated, use add_domain_type" if $VERBOSE
- return thing unless String === thing
- "tag:yaml.org,2002:#{thing}"
- end
end
class Object
diff --git a/test/psych/test_deprecated.rb b/test/psych/test_deprecated.rb
index b83f325..e019cfb 100644
--- a/test/psych/test_deprecated.rb
+++ b/test/psych/test_deprecated.rb
@@ -121,11 +121,5 @@ module Psych
def test_yaml_as
assert_match(/helloworld/, Psych.dump(YamlAs.new))
end
-
- def test_tagurize
- assert_nil Psych.tagurize nil
- assert_equal Psych, Psych.tagurize(Psych)
- assert_equal 'tag:yaml.org,2002:foo', Psych.tagurize('foo')
- end
end
end