From d6ce3f94a8218b6249914cf6284889b3d6c38461 Mon Sep 17 00:00:00 2001 From: Daniel Tam Date: Fri, 28 Aug 2020 19:27:56 -0500 Subject: [PATCH] code cleanup --- convert.go | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/convert.go b/convert.go index 4d15034..b3c1ced 100644 --- a/convert.go +++ b/convert.go @@ -45,10 +45,6 @@ func main() { panic(err) } - // select the root element - //root := doc.SelectElement("plist") - //fmt.Println("ROOT element:", root.Tag) - // find the playlist elements for _, e := range doc.FindElements("./plist/dict/array/dict/array/dict/integer") { // add track to playlist @@ -133,16 +129,6 @@ func main() { } } - for _, e := range playlist { - _ = e - //fmt.Printf("Name: %s\nArist: %s\nLocation: %s\nID: %s\n\n", e.name, e.artist, e.location, e.id) - } - - for _, e := range playlist_tracks { - _ = e - //fmt.Println(e) - } - // create the xml file file, err := os.OpenFile("main_parsed.xml", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644) if err != nil { @@ -167,8 +153,4 @@ func main() { w.Flush() - //fmt.Printf("\n\n") - //fmt.Println(len(songlist)) - //fmt.Printf("\n\n") - //fmt.Println(playlist_length) -} \ No newline at end of file +}