Simplify unmarshalling.
This commit is contained in:
@@ -39,13 +39,6 @@ func (n *NameWithoutLanguage) marshal() []byte {
|
||||
return b
|
||||
}
|
||||
|
||||
func (n *NameWithoutLanguage) size() int {
|
||||
l := 1 + 4 // The attribute tag + 2 lengths
|
||||
l += len(n.name)
|
||||
l += len(n.value)
|
||||
return l
|
||||
}
|
||||
|
||||
func (n NameWithoutLanguage) Value() string {
|
||||
return n.value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user