From 5b52ef924f78aaaad0e89a051001207f173a62ab Mon Sep 17 00:00:00 2001 From: Joachim Hill-Grannec Date: Sun, 24 Jul 2016 17:06:44 -0700 Subject: [PATCH] No longer used function --- remote/bitbucketserver/internal/client.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/remote/bitbucketserver/internal/client.go b/remote/bitbucketserver/internal/client.go index 921b2420..3cd0847c 100644 --- a/remote/bitbucketserver/internal/client.go +++ b/remote/bitbucketserver/internal/client.go @@ -2,8 +2,6 @@ package internal import ( "bytes" - "crypto/md5" - "encoding/hex" "encoding/json" "fmt" log "github.com/Sirupsen/logrus" @@ -11,7 +9,6 @@ import ( "github.com/mrjones/oauth" "io/ioutil" "net/http" - "strings" ) const ( @@ -159,15 +156,6 @@ func (c *Client) DeleteHook(owner string, name string, link string) error { return c.doDelete(fmt.Sprintf(pathHookEnabled, c.base, owner, name, hookName)) } -func avatarLink(email string) (url string) { - hasher := md5.New() - hasher.Write([]byte(strings.ToLower(email))) - emailHash := fmt.Sprintf("%v", hex.EncodeToString(hasher.Sum(nil))) - avatarURL := fmt.Sprintf("https://www.gravatar.com/avatar/%s.jpg", emailHash) - log.Debug(avatarURL) - return avatarURL -} - //Helper function to help create the hook func (c *Client) doPut(url string, body []byte) error { request, err := http.NewRequest("PUT", url, bytes.NewBuffer(body))