Skip to content

Commit

Permalink
Remove unused Template.MarshalJSON function
Browse files Browse the repository at this point in the history
  • Loading branch information
Acconut committed Dec 9, 2024
1 parent 830730d commit 6293a07
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions template.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,21 +146,6 @@ func (template *Template) UnmarshalJSON(b []byte) error {
return nil
}

func (template Template) MarshalJSON() ([]byte, error) {
var internal templateInternal

internal.Name = template.Name
internal.Content = template.Content
internal.ID = template.ID
if template.RequireSignatureAuth {
internal.RequireSignatureAuth = 1
} else {
internal.RequireSignatureAuth = 0
}

return json.Marshal(internal)
}

// CreateTemplate will save the provided template struct as a new template
// and return the ID of the new template.
func (client *Client) CreateTemplate(ctx context.Context, template Template) (string, error) {
Expand Down

0 comments on commit 6293a07

Please sign in to comment.