ODPM 266: Go-libmemif + 2 examples.
[govpp.git] / vendor / gopkg.in / yaml.v2 / yaml.go
index bf18884..36d6b88 100644 (file)
@@ -77,19 +77,8 @@ type Marshaler interface {
 // supported tag options.
 //
 func Unmarshal(in []byte, out interface{}) (err error) {
-       return unmarshal(in, out, false)
-}
-
-// UnmarshalStrict is like Unmarshal except that any fields that are found
-// in the data that do not have corresponding struct members will result in
-// an error.
-func UnmarshalStrict(in []byte, out interface{}) (err error) {
-       return unmarshal(in, out, true)
-}
-
-func unmarshal(in []byte, out interface{}, strict bool) (err error) {
        defer handleErr(&err)
-       d := newDecoder(strict)
+       d := newDecoder()
        p := newParser(in)
        defer p.destroy()
        node := p.parse()