diff --git a/app/decorators/tree_decorator.rb b/app/decorators/tree_decorator.rb index 754868f58054715a46bedb4e65eddc3ff92bfa2c..5a7b13abfeed41921603a5cb7ad0694534b97c72 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