summaryrefslogtreecommitdiff
path: root/app/serializers/tree_entity.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/tree_entity.rb')
-rw-r--r--app/serializers/tree_entity.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/serializers/tree_entity.rb b/app/serializers/tree_entity.rb
index 555e5cf83bd..9f1b485347f 100644
--- a/app/serializers/tree_entity.rb
+++ b/app/serializers/tree_entity.rb
@@ -3,10 +3,6 @@ class TreeEntity < Grape::Entity
expose :id, :path, :name, :mode
- expose :last_commit do |tree|
- request.project.repository.last_commit_for_path(tree.commit_id, tree.path)
- end
-
expose :icon do |tree|
IconsHelper.file_type_icon_class('folder', tree.mode, tree.name)
end