Remove debug generation code.

This commit is contained in:
John Beisley 2022-06-06 18:01:18 +01:00
parent e3e16da35f
commit 89dd64b3ce

View File

@ -129,19 +129,6 @@ func processService(
} }
xmlSCPD.Clean() xmlSCPD.Clean()
for _, action := range xmlSCPD.Actions {
fmt.Printf("* %s()\n", action.Name)
for _, arg := range action.Arguments {
direction := "?"
if arg.Direction == "in" {
direction = "<-"
} else if arg.Direction == "out" {
direction = "->"
}
fmt.Printf(" %s %s %s\n", direction, arg.Name, arg.RelatedStateVariable)
}
}
sd, err := srvdesc.FromXML(xmlSCPD) sd, err := srvdesc.FromXML(xmlSCPD)
if err != nil { if err != nil {
return fmt.Errorf("transforming service description: %w", err) return fmt.Errorf("transforming service description: %w", err)