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
path: root/app
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-10-16 00:54:49 +0400
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-10-16 01:42:44 +0400
commit536eb8e82893b5c0ae80f47ca24986ea6d9d4a3a (patch)
tree119b577c149bf3fd005b0cb0d3b390aac27b599d /app
parentd40d2dd8090ab1c171791b54d26e65f0573de239 (diff)
Remove #history_path and #mb_size from TreeDecorator
Diffstat (limited to 'app')
-rw-r--r--app/decorators/tree_decorator.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/app/decorators/tree_decorator.rb b/app/decorators/tree_decorator.rb
index 754868f5805..5a7b13abfee 100644
--- a/app/decorators/tree_decorator.rb
+++ b/app/decorators/tree_decorator.rb
@@ -28,17 +28,4 @@ class TreeDecorator < ApplicationDecorator
file = File.join(path, "..")
h.project_tree_path(project, h.tree_join(ref, file))
end
-
- def history_path
- h.project_commits_path(project, h.tree_join(ref, path))
- end
-
- def mb_size
- size = (tree.size / 1024)
- if size < 1024
- "#{size} KB"
- else
- "#{size/1024} MB"
- end
- end
end