diff options
author | 6543 <6543@obermui.de> | 2020-03-01 23:05:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 00:05:44 +0200 |
commit | 4160bd6ef1e70f3e6ec6bb69b1cd37a66f14c4e3 (patch) | |
tree | 104077af60eb5e8d756da5d0c7a12f6e19ef3133 /modules/structs/user_app.go | |
parent | c08c975d368771237d6509df915d3ec315186612 (diff) | |
download | gitea-4160bd6ef1e70f3e6ec6bb69b1cd37a66f14c4e3.tar.gz gitea-4160bd6ef1e70f3e6ec6bb69b1cd37a66f14c4e3.zip |
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
Diffstat (limited to 'modules/structs/user_app.go')
-rw-r--r-- | modules/structs/user_app.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/structs/user_app.go b/modules/structs/user_app.go index a0b0c3cb70..44df5a6a49 100644 --- a/modules/structs/user_app.go +++ b/modules/structs/user_app.go @@ -6,15 +6,9 @@ package structs import ( - "encoding/base64" "time" ) -// BasicAuthEncode generate base64 of basic auth head -func BasicAuthEncode(user, pass string) string { - return base64.StdEncoding.EncodeToString([]byte(user + ":" + pass)) -} - // AccessToken represents an API access token. // swagger:response AccessToken type AccessToken struct { |