summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-03-02 10:32:13 +0100
committerJacob Vosmaer <jacob@gitlab.com>2018-03-02 10:32:13 +0100
commit1ee340f888492e044caa994f33fd59ebd3459aab (patch)
treed953b3c38eda6ce581b81da6b107ccecf6e11698
parentc37cbb3125d5c1542371ff72c5ec7d76e3d2261b (diff)
downloadgitlab-ce-gitlab-git-duplicate-code.tar.gz
Remove duplicate method definitionsgitlab-git-duplicate-code
-rw-r--r--lib/gitlab/git/repository.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index 1c964960983..2247e35fbeb 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -1420,16 +1420,6 @@ module Gitlab
output
end
- def can_be_merged?(source_sha, target_branch)
- gitaly_migrate(:can_be_merged) do |is_enabled|
- if is_enabled
- gitaly_can_be_merged?(source_sha, find_branch(target_branch).target)
- else
- rugged_can_be_merged?(source_sha, target_branch)
- end
- end
- end
-
def last_commit_id_for_path(sha, path)
gitaly_migrate(:last_commit_for_path) do |is_enabled|
if is_enabled
@@ -2391,14 +2381,6 @@ module Gitlab
.map { |c| commit(c) }
end
- def gitaly_can_be_merged?(their_commit, our_commit)
- !gitaly_conflicts_client(our_commit, their_commit).conflicts?
- end
-
- def rugged_can_be_merged?(their_commit, our_commit)
- !rugged.merge_commits(our_commit, their_commit).conflicts?
- end
-
def last_commit_for_path_by_gitaly(sha, path)
gitaly_commit_client.last_commit_for_path(sha, path)
end