Commit 536eb8e82893b5c0ae80f47ca24986ea6d9d4a3a
1 parent
d40d2dd8
Exists in
master
and in
4 other branches
Remove #history_path and #mb_size from TreeDecorator
Showing
1 changed file
with
0 additions
and
13 deletions
Show diff stats
app/decorators/tree_decorator.rb
@@ -28,17 +28,4 @@ class TreeDecorator < ApplicationDecorator | @@ -28,17 +28,4 @@ class TreeDecorator < ApplicationDecorator | ||
28 | file = File.join(path, "..") | 28 | file = File.join(path, "..") |
29 | h.project_tree_path(project, h.tree_join(ref, file)) | 29 | h.project_tree_path(project, h.tree_join(ref, file)) |
30 | end | 30 | end |
31 | - | ||
32 | - def history_path | ||
33 | - h.project_commits_path(project, h.tree_join(ref, path)) | ||
34 | - end | ||
35 | - | ||
36 | - def mb_size | ||
37 | - size = (tree.size / 1024) | ||
38 | - if size < 1024 | ||
39 | - "#{size} KB" | ||
40 | - else | ||
41 | - "#{size/1024} MB" | ||
42 | - end | ||
43 | - end | ||
44 | end | 31 | end |