Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/tree_helper.rb')
-rw-r--r--app/helpers/tree_helper.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/app/helpers/tree_helper.rb b/app/helpers/tree_helper.rb
index 2fef4ae98a9..370dbb10462 100644
--- a/app/helpers/tree_helper.rb
+++ b/app/helpers/tree_helper.rb
@@ -58,14 +58,6 @@ module TreeHelper
"#{username}-#{ref}-patch-#{epoch}"
end
- def tree_edit_project(project = @project)
- if can?(current_user, :push_code, project)
- project
- elsif current_user && current_user.already_forked?(project)
- current_user.fork_of(project)
- end
- end
-
def edit_in_new_fork_notice_now
_("You're not allowed to make changes to this project directly. "\
"A fork of this project is being created that you can make changes in, so you can submit a merge request.")
@@ -111,16 +103,6 @@ module TreeHelper
end
end
- def up_dir_path
- file = File.join(@path, "..")
- tree_join(@ref, file)
- end
-
- # returns the relative path of the first subdir that doesn't have only one directory descendant
- def flatten_tree(root_path, tree)
- tree.flat_path.sub(%r{\A#{Regexp.escape(root_path)}/}, '')
- end
-
def selected_branch
@branch_name || tree_edit_branch
end