scm: git: remove unused "block_given?" from adapter.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5673 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-05-06 13:49:10 +00:00
parent e9e477426a
commit 1194235faa
1 changed files with 3 additions and 12 deletions

View File

@ -214,11 +214,7 @@ module Redmine
:message => changeset[:description], :message => changeset[:description],
:paths => files :paths => files
}) })
if block_given? revisions << revision
yield revision
else
revisions << revision
end
changeset = {} changeset = {}
files = [] files = []
end end
@ -263,13 +259,8 @@ module Redmine
:time => Time.parse(changeset[:date]), :time => Time.parse(changeset[:date]),
:message => changeset[:description], :message => changeset[:description],
:paths => files :paths => files
}) })
revisions << revision
if block_given?
yield revision
else
revisions << revision
end
end end
end end
revisions revisions