Simplify unmarshalling.
This commit is contained in:
@@ -41,10 +41,3 @@ func (c *NaturalLanguage) marshal() []byte {
|
||||
marshalNameValue(c.name, c.value, b[1:])
|
||||
return b
|
||||
}
|
||||
|
||||
func (c *NaturalLanguage) 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