Skip to content

Commit a603d82

Browse files
committed
remove unused function
1 parent 367a79f commit a603d82

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

pkg/RepoManages.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ type RepoManager interface {
4848

4949
GetWebhookAndCiDataById(id int, ciPipelineMaterialId int) (*git.WebhookAndCiData, error)
5050
GetAllWebhookEventConfigForHost(req *git.WebhookEventConfigRequest) ([]*git.WebhookEventConfig, error)
51-
GetAllWebhookEventConfigForHostName(gitHostName string) ([]*git.WebhookEventConfig, error)
5251
GetWebhookEventConfig(eventId int) (*git.WebhookEventConfig, error)
5352
GetWebhookPayloadDataForPipelineMaterialId(request *git.WebhookPayloadDataRequest) (*git.WebhookPayloadDataResponse, error)
5453
GetWebhookPayloadFilterDataForPipelineMaterialId(request *git.WebhookPayloadFilterDataRequest) (*git.WebhookPayloadFilterDataResponse, error)
@@ -858,19 +857,6 @@ func (impl RepoManagerImpl) GetWebhookAndCiDataById(id int, ciPipelineMaterialId
858857
return webhookAndCiData, nil
859858
}
860859

861-
func (impl RepoManagerImpl) GetAllWebhookEventConfigForHostName(gitHostName string) ([]*git.WebhookEventConfig, error) {
862-
impl.logger.Debugw("Getting All webhook event config ", "gitHostName", gitHostName)
863-
864-
webhookEventsFromDb, err := impl.webhookEventRepository.GetAllGitHostWebhookEventByGitHostName(gitHostName)
865-
if err != nil {
866-
impl.logger.Errorw("error in getting webhook events", "gitHostName", gitHostName, "err", err)
867-
return nil, err
868-
}
869-
870-
// build events
871-
return impl.convertSqlBeansToWebhookEventConfig(webhookEventsFromDb)
872-
}
873-
874860
func (impl RepoManagerImpl) GetAllWebhookEventConfigForHost(req *git.WebhookEventConfigRequest) ([]*git.WebhookEventConfig, error) {
875861
gitHostId := req.GitHostId
876862
gitHostName := req.GitHostName

0 commit comments

Comments
 (0)