summaryrefslogtreecommitdiff
path: root/lib/json/common.rb
diff options
context:
space:
mode:
authorBrian Shirai <brixen@gmail.com>2013-09-21 10:13:12 -0700
committerBrian Shirai <brixen@gmail.com>2013-09-21 10:13:12 -0700
commitac60f654af91c301997b70107388cd1dbee4d0e1 (patch)
tree24ca052144338e96169f4e391326936a03a2e009 /lib/json/common.rb
parente6f3fdc135f10458e090201fbb15fafbaa166a0d (diff)
downloadjson-ac60f654af91c301997b70107388cd1dbee4d0e1.tar.gz
Removed unnecessary and incorrect condition for Rubinius.
Diffstat (limited to 'lib/json/common.rb')
-rw-r--r--lib/json/common.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/json/common.rb b/lib/json/common.rb
index 65a74a1..e24f637 100644
--- a/lib/json/common.rb
+++ b/lib/json/common.rb
@@ -412,10 +412,7 @@ module JSON
end
# Shortuct for iconv.
- if ::String.method_defined?(:encode) &&
- # XXX Rubinius doesn't support ruby 1.9 encoding yet
- defined?(RUBY_ENGINE) && RUBY_ENGINE != 'rbx'
- then
+ if ::String.method_defined?(:encode)
# Encodes string using Ruby's _String.encode_
def self.iconv(to, from, string)
string.encode(to, from)