Remove unnecessary parseBody call from LogServlet
It's redundant next to the calls in CommitData where the commit
content is used. Depending on the flags, removing this outer call can
save us some memory usage when the body isn't needed.
Change-Id: I30cce23b3f1409a8949c314271677568405d58e9
diff --git a/java/com/google/gitiles/LogServlet.java b/java/com/google/gitiles/LogServlet.java
index 6982e0a..f1bdd95 100644
--- a/java/com/google/gitiles/LogServlet.java
+++ b/java/com/google/gitiles/LogServlet.java
@@ -167,7 +167,6 @@
CommitJsonData.Log result = new CommitJsonData.Log();
List<CommitJsonData.Commit> entries = Lists.newArrayListWithCapacity(paginator.getLimit());
for (RevCommit c : paginator) {
- paginator.getWalk().parseBody(c);
entries.add(new CommitJsonData().toJsonData(req, paginator.getWalk(), c, fs, df));
}
result.log = entries;