From 7de53aa42a47b0f4a9b4ac4633773c39026f5df3 Mon Sep 17 00:00:00 2001 From: Vilen Topchii <32271530+vtopc@users.noreply.github.com> Date: Tue, 24 Dec 2024 19:26:49 +0200 Subject: [PATCH] DE-1410 Remove deprecated GetStoredMessageForURL() and GetStoredMessageRawForURL() methods (#373) --- mailgun.go | 5 ----- stored_messages.go | 10 ---------- 2 files changed, 15 deletions(-) diff --git a/mailgun.go b/mailgun.go index 4bfebe0..caffdc3 100644 --- a/mailgun.go +++ b/mailgun.go @@ -171,11 +171,6 @@ type Mailgun interface { GetStoredMessageRaw(ctx context.Context, id string) (StoredMessageRaw, error) GetStoredAttachment(ctx context.Context, url string) ([]byte, error) - // Deprecated - GetStoredMessageForURL(ctx context.Context, url string) (StoredMessage, error) - // Deprecated - GetStoredMessageRawForURL(ctx context.Context, url string) (StoredMessageRaw, error) - ListCredentials(opts *ListOptions) *CredentialsIterator CreateCredential(ctx context.Context, login, password string) error ChangeCredentialPassword(ctx context.Context, login, password string) error diff --git a/stored_messages.go b/stored_messages.go index ac144b8..727727f 100644 --- a/stored_messages.go +++ b/stored_messages.go @@ -100,16 +100,6 @@ func (mg *MailgunImpl) GetStoredMessageRaw(ctx context.Context, url string) (Sto return response, err } -// Deprecated: Use GetStoreMessage() instead -func (mg *MailgunImpl) GetStoredMessageForURL(ctx context.Context, url string) (StoredMessage, error) { - return mg.GetStoredMessage(ctx, url) -} - -// Deprecated: Use GetStoreMessageRaw() instead -func (mg *MailgunImpl) GetStoredMessageRawForURL(ctx context.Context, url string) (StoredMessageRaw, error) { - return mg.GetStoredMessageRaw(ctx, url) -} - // GetStoredAttachment retrieves the raw MIME body of a received e-mail message attachment. func (mg *MailgunImpl) GetStoredAttachment(ctx context.Context, url string) ([]byte, error) { r := newHTTPRequest(url)