From 573df442661c9d0794688e1da98f1ef966ef6265 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 3 Jun 2017 15:37:23 +0200 Subject: main.go: Remove old commented code This code was used for the old multiple time entry submission version of this program. Remove it now that the program only submits single time entries. We'll have similar argument handling code for user data, and the time entry submission code is already present here. --- main.go | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 2974434..41245db 100644 --- a/main.go +++ b/main.go @@ -53,29 +53,6 @@ func main() { defer resp.Body.Close() body, err = ioutil.ReadAll(resp.Body) log.Println(string(body)) - - // if len(os.Args) == 1 { - // fmt.Println("Not enough arguments") - // os.Exit(1) - // } - // - // file_path := os.Args[len(os.Args)-1] - // file, err := ioutil.ReadFile(file_path) - // if err != nil { - // log.Println(err) - // } - - // time_entries := []timetask.TimeEntry{} - // err = yaml.Unmarshal(file, &time_entries) - // if err != nil { - // log.Println(err) - // } - // - // log.Printf("%+v", time_entries) - - // timetask.SubmitTimeEntries(config.Fields, time_entries) - - // timetask.GenerateWeeklyTimesheet(os.Stdout, config.Defaults) } func loadConfig() { -- cgit v1.2.3