Drop unnecessary SetLabel method
This commit is contained in:
parent
ddf5b26a1e
commit
ee72e91593
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user