diff --git a/mailgun.go b/mailgun.go index e2e3aea..ebba3eb 100644 --- a/mailgun.go +++ b/mailgun.go @@ -144,8 +144,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 NewMessage instead of method. - NewMessage(from, subject, text string, to ...string) *Message // Deprecated: use func NewMIMEMessage instead of method. NewMIMEMessage(body io.ReadCloser, to ...string) *Message diff --git a/messages.go b/messages.go index 52f7fc6..bb53032 100644 --- a/messages.go +++ b/messages.go @@ -204,13 +204,6 @@ func NewMessage(from, subject, text string, to ...string) *Message { } } -// Deprecated: use func NewMessage instead of method. -// -// TODO(v5): remove this method -func (*MailgunImpl) NewMessage(from, subject, text string, to ...string) *Message { - return NewMessage(from, subject, text, to...) -} - // NewMIMEMessage creates a new MIME message. These messages are largely canned; // you do not need to invoke setters to set message-related headers. // However, you do still need to call setters for Mailgun-specific settings.