carddav: remove filter.MarshalText

This isn't necessary, we can just straight up let encoding/xml use the
string.
This commit is contained in:
Simon Ser 2020-01-23 19:21:00 +01:00
parent 94f47fa001
commit 38b729ad9c
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -76,10 +76,6 @@ const (
filterAllOf filterTest = "allof"
)
func (ft filterTest) MarshalText() ([]byte, error) {
return []byte(ft), nil
}
func (ft *filterTest) UnmarshalText(b []byte) error {
v := filterTest(string(b))
switch v {