Drop unnecessary SetLabel method

This commit is contained in:
Jason Streifling 2024-10-20 15:17:53 +02:00
parent ddf5b26a1e
commit ee72e91593

View File

@ -10,7 +10,7 @@ type Category struct {
*CommonAttributes *CommonAttributes
Term string `xml:"term,attr"` Term string `xml:"term,attr"`
Scheme string `xml:"scheme,attr,omitempty"` // IRI 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. // 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 // Check checks the Category for incompatibilities with RFC4287. It returns an
// error. // error.
func (c *Category) Check() error { func (c *Category) Check() error {