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:
parent
72be46f104
commit
c7db05d216
1 changed files with 0 additions and 44 deletions
|
@ -95,46 +95,6 @@ class String
|
||||||
end
|
end
|
||||||
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
|
class StringScanner
|
||||||
# lx: limit of x (colmns of screen)
|
# lx: limit of x (colmns of screen)
|
||||||
# ly: limit of y (rows of screen)
|
# ly: limit of y (rows of screen)
|
||||||
|
@ -275,10 +235,6 @@ class << Readline
|
||||||
end
|
end
|
||||||
end unless defined?(Readline.readline)
|
end unless defined?(Readline.readline)
|
||||||
|
|
||||||
def mergeinfo
|
|
||||||
`svn propget svn:mergeinfo #{RUBY_REPO_PATH}`
|
|
||||||
end
|
|
||||||
|
|
||||||
def find_svn_log(pattern)
|
def find_svn_log(pattern)
|
||||||
`svn log --xml --stop-on-copy --search="#{pattern}" #{RUBY_REPO_PATH}`
|
`svn log --xml --stop-on-copy --search="#{pattern}" #{RUBY_REPO_PATH}`
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue