Remove #history_path and #mb_size from TreeDecorator

This commit is contained in:
Riyad Preukschas 2012-10-15 22:54:49 +02:00
parent d40d2dd809
commit 536eb8e828

View file

@ -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