Skip to content

Commit

Permalink
Remove unused MarshalXML method
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed Oct 29, 2020
1 parent 1e7fe9f commit b40012f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions metaschema/parser/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,16 +548,6 @@ func (h *Href) UnmarshalXMLAttr(attr xml.Attr) error {
return nil
}

func (h *Href) MarshalXMLAttr(name xml.Name) (xml.Attr, error) {
if h.URL != nil {
rawURI := h.URL.String()

return xml.Attr{Name: name, Value: rawURI}, nil
}

return xml.Attr{Name: name}, nil
}

type AsType string

var goDatatypeMap = map[AsType]string{
Expand Down

0 comments on commit b40012f

Please sign in to comment.