Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Aug 18, 2020
1 parent 3dffb03 commit 2e4da60
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions models/migrations/v96.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ func deleteOrphanedAttachments(x *xorm.Engine) error {
CommentID int64
}

// AttachmentLocalPath returns where attachment is stored in local file
// system based on given UUID.
AttachmentLocalPath := func(uuid string) string {
return path.Join(setting.AttachmentPath, uuid[0:1], uuid[1:2], uuid)
}

sess := x.NewSession()
defer sess.Close()

Expand Down

0 comments on commit 2e4da60

Please sign in to comment.