From 5deb726f3fc5335b7391a28f6b21328b1335dd9e Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Wed, 27 Jan 2016 18:54:08 -0200 Subject: Refactoring of inline diff computing to prevent empty diff box. Fix #2489 --- routers/repo/commit.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'routers/repo/commit.go') diff --git a/routers/repo/commit.go b/routers/repo/commit.go index 9e46c2e8..c3fc4d17 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 -- cgit v1.2.3