From a5ef9b11a6f9d0214820009151751d183c6eb75a Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sun, 9 Feb 2020 13:49:25 +0000 Subject: [PATCH] Remove dead code Removing a half-baked Monzo HTTP client. A more fully supported and differently designed one is forthcoming. --- monzo_ynab/monzo.go | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 monzo_ynab/monzo.go diff --git a/monzo_ynab/monzo.go b/monzo_ynab/monzo.go deleted file mode 100644 index d27f65165..000000000 --- a/monzo_ynab/monzo.go +++ /dev/null @@ -1,18 +0,0 @@ -package main - -import ( - "fmt" - "net/http" -) - -// TODO: Support a version of this function that doesn't need the token -// parameter. -func monzoGet(token, string, endpoint string) { - client := &http.Client{} - req, err := http.NewRequest("GET", fmt.Sprintf("https://api.monzo.com/%s", endpoint), nil) - failOn(err) - req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", token)) - res, err := client.Do(req) - failOn(err) - fmt.Println(res) -}