OSDN Git Service

Remove #history_path and #mb_size from TreeDecorator
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>
Mon, 15 Oct 2012 20:54:49 +0000 (22:54 +0200)
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>
Mon, 15 Oct 2012 21:42:44 +0000 (23:42 +0200)
app/decorators/tree_decorator.rb

index 754868f..5a7b13a 100644 (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