From 8f5e0f29080410f1b382c1783416bf2c68244952 Mon Sep 17 00:00:00 2001 From: Vilen Topchii <32271530+vtopc@users.noreply.github.com> Date: Sun, 15 Dec 2024 19:03:40 +0200 Subject: [PATCH] removed deprecated (mg *MailgunImpl) NewMIMEMessage method --- mailgun.go | 3 --- messages.go | 7 ------- 2 files changed, 10 deletions(-) diff --git a/mailgun.go b/mailgun.go index ebba3eb..a11927c 100644 --- a/mailgun.go +++ b/mailgun.go @@ -78,7 +78,6 @@ import ( "context" "errors" "fmt" - "io" "net/http" "os" "sync" @@ -144,8 +143,6 @@ type Mailgun interface { // TODO(v5): switch m to SendableMessage interface Send(ctx context.Context, m *Message) (mes string, id string, err error) ReSend(ctx context.Context, id string, recipients ...string) (string, string, error) - // Deprecated: use func NewMIMEMessage instead of method. - NewMIMEMessage(body io.ReadCloser, to ...string) *Message ListBounces(opts *ListOptions) *BouncesIterator GetBounce(ctx context.Context, address string) (Bounce, error) diff --git a/messages.go b/messages.go index bb53032..c68bcf1 100644 --- a/messages.go +++ b/messages.go @@ -229,13 +229,6 @@ func NewMIMEMessage(body io.ReadCloser, to ...string) *Message { } } -// Deprecated: use func NewMIMEMessage instead of method. -// -// TODO(v5): remove this method -func (*MailgunImpl) NewMIMEMessage(body io.ReadCloser, to ...string) *Message { - return NewMIMEMessage(body, to...) -} - func (m *Message) Domain() string { return m.domain }