diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-19 04:54:06 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-19 04:54:06 +0000 |
commit | 8ef7bb8c211d156b33f1f97f7c500e5b465fdf5b (patch) | |
tree | 2bd2a2d35da8c7fc0f67e7b1a8d633a3ff8b2a54 /ext/syck/lib/syck | |
parent | 87d8a3b9ce775529f8fee6d39061cd958092bf1e (diff) |
* ext/syck/lib/syck.rb: fixing unused variable warnings
* ext/syck/lib/syck/basenode.rb: ditto
* ext/syck/lib/syck/rubytypes.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/lib/syck')
-rw-r--r-- | ext/syck/lib/syck/basenode.rb | 1 | ||||
-rw-r--r-- | ext/syck/lib/syck/rubytypes.rb | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/ext/syck/lib/syck/basenode.rb b/ext/syck/lib/syck/basenode.rb index 3739331562..5dc27bfdfe 100644 --- a/ext/syck/lib/syck/basenode.rb +++ b/ext/syck/lib/syck/basenode.rb @@ -83,7 +83,6 @@ module Syck def match_path( ypath_str ) warn "#{caller[0]}: match_path is deprecated" if $VERBOSE require 'syck/ypath' - depth = 0 matches = [] YPath.each_path( ypath_str ) do |ypath| seg = match_segment( ypath, 0 ) diff --git a/ext/syck/lib/syck/rubytypes.rb b/ext/syck/lib/syck/rubytypes.rb index 6b2937bba0..50a6f4622b 100644 --- a/ext/syck/lib/syck/rubytypes.rb +++ b/ext/syck/lib/syck/rubytypes.rb @@ -61,7 +61,7 @@ class Struct props = {} val.delete_if { |k,v| props[k] = v if k =~ /^@/ } begin - struct_name, struct_type = YAML.read_type_class( tag, Struct ) + struct_type = YAML.read_type_class( tag, Struct ).last rescue NameError end if not struct_type |