From 4160bd6ef1e70f3e6ec6bb69b1cd37a66f14c4e3 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 1 Mar 2020 23:05:44 +0100 Subject: Remove Unused Functions (#10516) * remove ReplaceLeft * remove GetRepositoryByOwnerAndName chainload to models.GetRepositoryByOwnerAndName * remove CheckUnitUser chainload to models.CheckUnitUser * remove MakeAssigneeList * remove DownloadDiff & DownloadPatch -> DownloadDiffOrPatch * remove GetRandomBytesAsBase64 * remove PushUpdateDeleteTags * remove GetUserByKeyID (you still can resolve user by "k, err := GetPublicKeyByID; userID := k.OwnerID") * remove BasicAuthEncode from struct package -> same function in modules/base/tools ! * remove UserID from api.utils * remove unused func from structs package --- services/pull/patch.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'services') diff --git a/services/pull/patch.go b/services/pull/patch.go index 815263e898..96145fcd92 100644 --- a/services/pull/patch.go +++ b/services/pull/patch.go @@ -19,16 +19,6 @@ import ( "code.gitea.io/gitea/modules/log" ) -// DownloadDiff will write the patch for the pr to the writer -func DownloadDiff(pr *models.PullRequest, w io.Writer, patch bool) error { - return DownloadDiffOrPatch(pr, w, false) -} - -// DownloadPatch will write the patch for the pr to the writer -func DownloadPatch(pr *models.PullRequest, w io.Writer, patch bool) error { - return DownloadDiffOrPatch(pr, w, true) -} - // DownloadDiffOrPatch will write the patch for the pr to the writer func DownloadDiffOrPatch(pr *models.PullRequest, w io.Writer, patch bool) error { // Clone base repo. -- cgit v1.2.3