1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

tool/redmine-backporter.rb: Remove unused methods

They seem to have never been used from the beginning (r45081).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2019-04-21 13:05:32 +00:00
parent 72be46f104
commit c7db05d216

View file

@ -95,46 +95,6 @@ class String
end
end
def wcwidth(wc)
return 8 if wc == "\t"
n = wc.ord
if n < 0x20
0
elsif n < 0x80
1
else
2
end
end
def fold(str, col)
i = 0
size = str.size
len = 0
while i < size
case c = str[i]
when "\r", "\n"
len = 0
else
d = wcwidth(c)
len += d
if len == col
str.insert(i+1, "\n")
len = 0
i += 2
next
elsif len > col
str.insert(i, "\n")
len = d
i += 2
next
end
end
i += 1
end
str
end
class StringScanner
# lx: limit of x (colmns of screen)
# ly: limit of y (rows of screen)
@ -275,10 +235,6 @@ class << Readline
end
end unless defined?(Readline.readline)
def mergeinfo
`svn propget svn:mergeinfo #{RUBY_REPO_PATH}`
end
def find_svn_log(pattern)
`svn log --xml --stop-on-copy --search="#{pattern}" #{RUBY_REPO_PATH}`
end