From c29dd1066dee86aeea54fbf33a03f876a2f70746 Mon Sep 17 00:00:00 2001 From: Jeff Walter Date: Sat, 22 Sep 2018 14:48:11 -0500 Subject: [PATCH] Removing .lock file and debugging code. --- .gitignore | 3 +++ Gopkg.lock | 72 ------------------------------------------------------ library.go | 7 ++---- 3 files changed, 5 insertions(+), 77 deletions(-) delete mode 100644 Gopkg.lock diff --git a/.gitignore b/.gitignore index 2f8364c..1ea1df9 100644 --- a/.gitignore +++ b/.gitignore @@ -16,5 +16,8 @@ # Project-local files *.idea +# go dep lock file +Gopkg.lock + # Go vendor libraries vendor/**/ diff --git a/Gopkg.lock b/Gopkg.lock deleted file mode 100644 index d2d90c5..0000000 --- a/Gopkg.lock +++ /dev/null @@ -1,72 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - branch = "master" - digest = "1:4a28080faacdaabfe54a78ba0bfb41468744cbcda6af15748b917ca725d3749c" - name = "github.com/pkg/errors" - packages = ["."] - pruneopts = "" - revision = "c059e472caf75dbe73903f6521a20abac245b17f" - -[[projects]] - branch = "master" - digest = "1:b44621ef75eb48a8c09e7d6ce4d3f6681534307189c9bc0267c9532094c20a2a" - name = "github.com/r3labs/sse" - packages = ["."] - pruneopts = "" - revision = "507597500aa545836a85909d89a59e50d260f366" - -[[projects]] - branch = "master" - digest = "1:fbdbb6cf8db3278412c9425ad78b26bb8eb788181f26a3ffb3e4f216b314f86a" - name = "golang.org/x/net" - packages = [ - "context", - "idna", - "publicsuffix", - ] - pruneopts = "" - revision = "26e67e76b6c3f6ce91f7c52def5af501b4e0f3a2" - -[[projects]] - digest = "1:5acd3512b047305d49e8763eef7ba423901e85d5dd2fd1e71778a0ea8de10bd4" - name = "golang.org/x/text" - packages = [ - "collate", - "collate/build", - "internal/colltab", - "internal/gen", - "internal/tag", - "internal/triegen", - "internal/ucd", - "language", - "secure/bidirule", - "transform", - "unicode/bidi", - "unicode/cldr", - "unicode/norm", - "unicode/rangetable", - ] - pruneopts = "" - revision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0" - version = "v0.3.0" - -[[projects]] - digest = "1:1cf61f0228e64d1bfddaa42bfd1f5047ed3626925b9bea69bbcb9168472dae23" - name = "gopkg.in/cenkalti/backoff.v1" - packages = ["."] - pruneopts = "" - revision = "61153c768f31ee5f130071d08fc82b85208528de" - version = "v1.1.0" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = [ - "github.com/pkg/errors", - "github.com/r3labs/sse", - "golang.org/x/net/publicsuffix", - ] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/library.go b/library.go index 238bd70..b31b190 100644 --- a/library.go +++ b/library.go @@ -17,7 +17,6 @@ package arlo import ( - "fmt" "time" "github.com/pkg/errors" @@ -122,8 +121,6 @@ func (a *Arlo) DeleteRecording(r *Recording) error { func (a *Arlo) BatchDeleteRecordings(l *Library) error { body := map[string]Library{"data": *l} - fmt.Printf("%+v\n", body) - return nil - //resp, err := a.post(LibraryRecycleUri, "", body, nil) - //return checkRequest(resp, err, "failed to delete recordings") + resp, err := a.post(LibraryRecycleUri, "", body, nil) + return checkRequest(resp, err, "failed to delete recordings") }