summaryrefslogtreecommitdiffstats
path: root/routers/repo/commit.go
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2016-01-27 18:54:08 -0200
committerAndrey Nering <andrey.nering@gmail.com>2016-01-27 18:54:08 -0200
commit5deb726f3fc5335b7391a28f6b21328b1335dd9e (patch)
tree03044e2fb9dfee8f6c8f77356d983936cceb105b /routers/repo/commit.go
parent93f40995b30b67e80e3fff36fe7e7ced756a13d8 (diff)
downloadgitea-5deb726f3fc5335b7391a28f6b21328b1335dd9e.tar.gz
gitea-5deb726f3fc5335b7391a28f6b21328b1335dd9e.zip
Refactoring of inline diff computing to prevent empty diff box. Fix #2489
Diffstat (limited to 'routers/repo/commit.go')
-rw-r--r--routers/repo/commit.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go
index 9e46c2e846..c3fc4d177a 100644
--- a/routers/repo/commit.go
+++ b/routers/repo/commit.go
@@ -168,12 +168,6 @@ func Diff(ctx *middleware.Context) {
}
}
- for _, diffFile := range diff.Files {
- for _, diffSection := range diffFile.Sections {
- diffSection.ComputeLinesDiff()
- }
- }
-
ctx.Data["IsSplitStyle"] = ctx.Query("style") == "split"
ctx.Data["Username"] = userName
ctx.Data["Reponame"] = repoName