aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/commit.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-01-28 05:33:27 -0500
committerUnknwon <u@gogs.io>2016-01-28 05:33:27 -0500
commit9b8ad01bc08bdcdb9aa69659215de4909aa8026c (patch)
tree924d26eb0ee263c50d8cd3577d9271a8813b3b7f /routers/repo/commit.go
parent8eb057779149fb89ebeef8385415455f8093658c (diff)
parent5deb726f3fc5335b7391a28f6b21328b1335dd9e (diff)
Merge pull request #2493 from andreynering/fix-2489
Refactoring of inline diff computing to prevent empty diff box.
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 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