From 6293a0790b3ec40f2057525b572bc5c0a6eef05b Mon Sep 17 00:00:00 2001 From: Marius Kleidl Date: Mon, 9 Dec 2024 09:13:11 +0100 Subject: [PATCH] Remove unused `Template.MarshalJSON` function --- template.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/template.go b/template.go index 4e61f37..2c4f658 100644 --- a/template.go +++ b/template.go @@ -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) {