diff options
author | Robert Speicher <robert@gitlab.com> | 2017-05-25 22:15:57 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2017-05-25 22:15:57 +0000 |
commit | 8e2fefc6c44fc3c6140e5cbc4b56c58c90dc07f3 (patch) | |
tree | 2fe8ce678f1183fe778454dfa39e3dcc277d3fd8 /app/helpers/commits_helper.rb | |
parent | e20eb71203aa29458d7f51a27d42a3d8208e2494 (diff) | |
parent | d88a5c1db1c6cca639039188a26c6e6d5bc68831 (diff) | |
download | gitlab-ce-8e2fefc6c44fc3c6140e5cbc4b56c58c90dc07f3.tar.gz |
Merge branch 'dm-diff-cleanup' into 'master'
Clean up diff rendering
See merge request !11390
Diffstat (limited to 'app/helpers/commits_helper.rb')
-rw-r--r-- | app/helpers/commits_helper.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/app/helpers/commits_helper.rb b/app/helpers/commits_helper.rb index d59d51905a6..5b5cdebe919 100644 --- a/app/helpers/commits_helper.rb +++ b/app/helpers/commits_helper.rb @@ -15,16 +15,6 @@ module CommitsHelper commit_person_link(commit, options.merge(source: :committer)) end - def image_diff_class(diff) - if diff.deleted_file - "deleted" - elsif diff.new_file - "added" - else - nil - end - end - def commit_to_html(commit, ref, project) render 'projects/commits/commit', commit: commit, |