diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-17 10:06:58 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-17 10:06:58 +0000 |
commit | 792799e815f38f26cf8262e4d8c291ad955e651a (patch) | |
tree | faeea8ef57207c9069a9ef63b15a162cf2d950dd /ext/json/lib/json/pure.rb | |
parent | cb7e9d616152441e197a853865c419b601e4d12c (diff) |
merges r23346 from trunk into ruby_1_9_1.
--
Update to JSON 1.1.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/json/lib/json/pure.rb')
-rw-r--r-- | ext/json/lib/json/pure.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/ext/json/lib/json/pure.rb b/ext/json/lib/json/pure.rb deleted file mode 100644 index 6af8705c5b..0000000000 --- a/ext/json/lib/json/pure.rb +++ /dev/null @@ -1,22 +0,0 @@ -require 'json/common' -require 'json/pure/parser' -require 'json/pure/generator' - -module JSON - # Swap consecutive bytes of _string_ in place. - def self.swap!(string) # :nodoc: - 0.upto(string.size / 2) do |i| - break unless string[2 * i + 1] - string[2 * i], string[2 * i + 1] = string[2 * i + 1], string[2 * i] - end - string - end - - # This module holds all the modules/classes that implement JSON's - # functionality in pure ruby. - module Pure - $DEBUG and warn "Using pure library for JSON." - JSON.parser = Parser - JSON.generator = Generator - end -end |