Skip to content

Commit 75fe358

Browse files
committed
[Truffle] Removing String.clone method which raises TypeError.
1 parent bae615c commit 75fe358

File tree

1 file changed

+0
-8
lines changed
  • truffle/src/main/ruby/core/rubinius/common

1 file changed

+0
-8
lines changed

truffle/src/main/ruby/core/rubinius/common/string.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ def self.try_convert(obj)
4545
Rubinius::Type.try_convert obj, String, :to_str
4646
end
4747

48-
class << self
49-
def clone
50-
raise TypeError, "Unable to clone/dup String class"
51-
end
52-
53-
alias_method :dup, :clone
54-
end
55-
5648
def initialize(arg = undefined)
5749
replace arg unless undefined.equal?(arg)
5850
self

0 commit comments

Comments
 (0)