From 53bb0c1e6d7c24fddc1cf775a544dbb92eab171c Mon Sep 17 00:00:00 2001 From: hmwenchen Date: Tue, 26 Apr 2016 20:43:03 +0800 Subject: [PATCH] Remove unused packages --- service/notification.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/service/notification.go b/service/notification.go index d307cb487..ceda490d0 100644 --- a/service/notification.go +++ b/service/notification.go @@ -17,10 +17,7 @@ package service import ( "encoding/json" - "net/http" - "os" "regexp" - "sort" "strings" "github.com/vmware/harbor/dao" @@ -28,7 +25,6 @@ import ( svc_utils "github.com/vmware/harbor/service/utils" "github.com/vmware/harbor/utils/log" "github.com/vmware/harbor/utils/registry" - "github.com/vmware/harbor/utils/registry/errors" "github.com/astaxie/beego" ) @@ -54,7 +50,6 @@ func (n *NotificationHandler) Post() { } var username, action, repo, project, repoTag string var matched bool - var client *http.Client for _, e := range notification.Events { matched, err = regexp.MatchString(manifestPattern, e.Target.MediaType) if err != nil {