diff --git a/app/models/repository.rb b/app/models/repository.rb index 37fefc91cb2..c57f84175a0 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -137,10 +137,6 @@ class Repository find_branch(branch_name) end - def find_or_create_branch(user, name, ref) - find_branch(name) or add_branch(user, name, ref) - end - def add_tag(tag_name, ref, message = nil) expire_tags_cache