From ee72e9159334cb4a6acbe63abcc7deb7f7ff25ce Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Sun, 20 Oct 2024 15:17:53 +0200 Subject: [PATCH] Drop unnecessary SetLabel method --- category.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/category.go b/category.go index 28358c3..1db4228 100644 --- a/category.go +++ b/category.go @@ -10,7 +10,7 @@ type Category struct { *CommonAttributes Term string `xml:"term,attr"` Scheme string `xml:"scheme,attr,omitempty"` // IRI - Label string `xml:"label,attr,omitempty"` + Label string `xml:"label,attr,omitempty"` // Must be unescaped } // NewCategory creates a new Category. It returns a *Category. @@ -21,11 +21,6 @@ func NewCategory(term string) *Category { } } -// SetLabel sets the Label attribute of the Category. -func (c *Category) SetLabel(label string) { - c.Label = Unescape(label) -} - // Check checks the Category for incompatibilities with RFC4287. It returns an // error. func (c *Category) Check() error {