Skip to content

Commit

Permalink
[Truffle] Removing String.clone method which raises TypeError.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjfish committed Apr 22, 2015
1 parent bae615c commit 75fe358
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions truffle/src/main/ruby/core/rubinius/common/string.rb
Original file line number Diff line number Diff line change
@@ -45,14 +45,6 @@ def self.try_convert(obj)
Rubinius::Type.try_convert obj, String, :to_str
end

class << self
def clone
raise TypeError, "Unable to clone/dup String class"
end

alias_method :dup, :clone
end

def initialize(arg = undefined)
replace arg unless undefined.equal?(arg)
self

0 comments on commit 75fe358

Please sign in to comment.