Skip to content

Commit 200778b

Browse files
authored
[chore] [cmd/mdatagen] Remove unused (md *metadata) Unmarshal func (open-telemetry#23575)
This func is not used. Because the receiver is the metadata struct, it would need to be called directly. This also tests field Name -- which does not exist anymore (replaced by Type). **Note:** Validation of Type will be done as part of open-telemetry#23424
1 parent b726aee commit 200778b

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

cmd/mdatagen/loader.go

-11
Original file line numberDiff line numberDiff line change
@@ -224,17 +224,6 @@ type metadata struct {
224224
ScopeName string `mapstructure:"-"`
225225
}
226226

227-
func (md *metadata) Unmarshal(parser *confmap.Conf) error {
228-
if !parser.IsSet("name") {
229-
return errors.New("missing required field: `description`")
230-
}
231-
err := parser.Unmarshal(md, confmap.WithErrorUnused())
232-
if err != nil {
233-
return err
234-
}
235-
return nil
236-
}
237-
238227
func (md *metadata) Validate() error {
239228
var errs error
240229

0 commit comments

Comments
 (0)