Simplify unmarshalling.
This commit is contained in:
@@ -42,10 +42,3 @@ func (c *TextWithoutLanguage) marshal() []byte {
|
||||
marshalNameValue(c.name, c.value, b[1:])
|
||||
return b
|
||||
}
|
||||
|
||||
func (c *TextWithoutLanguage) size() int {
|
||||
l := 1 + 4 // The attribute tag + 2 lengths
|
||||
l += len(c.name)
|
||||
l += len(c.value)
|
||||
return l
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user