diff options
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/commit.go | 6 | ||||
-rw-r--r-- | routers/repo/pull.go | 6 |
2 files changed, 0 insertions, 12 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 diff --git a/routers/repo/pull.go b/routers/repo/pull.go index 770ec471e4..e3500716d3 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -349,12 +349,6 @@ func ViewPullFiles(ctx *middleware.Context) { ctx.Data["Diff"] = diff ctx.Data["DiffNotAvailable"] = diff.NumFiles() == 0 - for _, diffFile := range diff.Files { - for _, diffSection := range diffFile.Sections { - diffSection.ComputeLinesDiff() - } - } - commit, err := gitRepo.GetCommit(endCommitID) if err != nil { ctx.Handle(500, "GetCommit", err) |