PORKBUN: Remove unused function (#3072)

This commit is contained in:
Tom Limoncelli 2024-08-06 10:48:04 -04:00 committed by GitHub
parent 69533fca23
commit e86c666942
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)