Skip to content

Commit

Permalink
Removed deprecated GetStoredMessageForURL() and GetStoredMessageRawFo…
Browse files Browse the repository at this point in the history
…rURL() methods
  • Loading branch information
vtopc committed Dec 24, 2024
1 parent 317cfaa commit f8bef4a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions mailgun.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 0 additions & 10 deletions stored_messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f8bef4a

Please sign in to comment.