From 2bad43f5eefa1b452183538cdf88970a413024b3 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer <jacob@gitlab.com> Date: Mon, 26 Jun 2017 18:50:26 +0200 Subject: [PATCH] Remove unused Gitlab::Git::Commit#to_diff argument --- lib/gitlab/git/commit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gitlab/git/commit.rb b/lib/gitlab/git/commit.rb index d5d149f1423a2..b68378f5c0b4c 100644 --- a/lib/gitlab/git/commit.rb +++ b/lib/gitlab/git/commit.rb @@ -175,8 +175,8 @@ def parent_id # Shows the diff between the commit's parent and the commit. # # Cuts out the header and stats from #to_patch and returns only the diff. - def to_diff(options = {}) - diff_from_parent(options).patch + def to_diff + diff_from_parent.patch end # Returns a diff object for the changes from this commit's first parent. -- GitLab