Skip to content

Commit

Permalink
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions truffle/src/main/ruby/core/string.rb
Original file line number Diff line number Diff line change
@@ -133,14 +133,6 @@ def self.try_convert(obj)
Rubinius::Type.try_convert obj, String, :to_str
end

def %(args)
*args = args
ret = Rubinius::Sprinter.get(self).call(*args)

ret.taint if tainted?
return ret
end

def =~(pattern)
case pattern
when Regexp
@@ -169,21 +161,6 @@ def delete(*strings)
str.delete!(*strings) || str
end

def downcase
return dup if bytesize == 0
transform(Truffle::CType::Lowered)
end

def end_with?(*suffixes)
suffixes.each do |suffix|
suffix = Rubinius::Type.check_convert_type suffix, String, :to_str
next unless suffix

return true if self[-suffix.length, suffix.length] == suffix
end
false
end

def include?(needle)
!!find_string(StringValue(needle), 0)
end
@@ -315,15 +292,6 @@ def squeeze(*strings)
str.squeeze!(*strings) || str
end

def start_with?(*prefixes)
prefixes.each do |prefix|
prefix = Rubinius::Type.check_convert_type prefix, String, :to_str
next unless prefix
return true if self[0, prefix.length] == prefix
end
false
end

def strip
str = dup
str.strip! || str

0 comments on commit 9f706bb

Please sign in to comment.