From e86c666942c155125f1b05e03e76398fe6767e21 Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Tue, 6 Aug 2024 10:48:04 -0400 Subject: [PATCH] PORKBUN: Remove unused function (#3072) --- providers/porkbun/api.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/providers/porkbun/api.go b/providers/porkbun/api.go index 70dc7d6ba..d101a27c7 100644 --- a/providers/porkbun/api.go +++ b/providers/porkbun/api.go @@ -4,12 +4,13 @@ import ( "bytes" "encoding/json" "fmt" - "github.com/StackExchange/dnscontrol/v4/pkg/printer" "io" "net/http" "sort" "strings" "time" + + "github.com/StackExchange/dnscontrol/v4/pkg/printer" ) const ( @@ -100,12 +101,6 @@ retry: return bodyString, nil } -func (c *porkbunProvider) ping() error { - params := requestParams{} - _, err := c.post("/ping", params) - return err -} - func (c *porkbunProvider) createRecord(domain string, rec requestParams) error { if _, err := c.post("/dns/create/"+domain, rec); err != nil { return fmt.Errorf("failed create record (porkbun): %w", err)