From 0e4557bdd3591bc84e07b0b2f3c7e67118dc911d Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 12 Jul 2018 02:49:35 +0100 Subject: [PATCH] Remove unused code --- db/db_test.go | 7 ------- log/hook.go | 2 -- 2 files changed, 9 deletions(-) diff --git a/db/db_test.go b/db/db_test.go index a50fb423..852419ba 100644 --- a/db/db_test.go +++ b/db/db_test.go @@ -19,7 +19,6 @@ import ( "github.com/abcum/fibre" "github.com/abcum/surreal/cnf" - "github.com/abcum/surreal/util/data" ) func setupDB(workers ...int) { @@ -42,8 +41,6 @@ func setupDB(workers ...int) { func setupKV() *fibre.Context { - keep := new(data.Doc) - auth := new(cnf.Auth) auth.Kind = cnf.AuthKV auth.Possible.NS = "*" @@ -56,7 +53,6 @@ func setupKV() *fibre.Context { ctx := fibre.NewContext(req, res, nil) ctx.Set("auth", auth) - ctx.Set("keep", keep) return ctx @@ -64,8 +60,6 @@ func setupKV() *fibre.Context { func setupSC() *fibre.Context { - keep := new(data.Doc) - auth := new(cnf.Auth) auth.Kind = cnf.AuthSC auth.Possible.NS = "*" @@ -78,7 +72,6 @@ func setupSC() *fibre.Context { ctx := fibre.NewContext(req, res, nil) ctx.Set("auth", auth) - ctx.Set("keep", keep) return ctx diff --git a/log/hook.go b/log/hook.go index 4d1f8cc1..fecd1799 100644 --- a/log/hook.go +++ b/log/hook.go @@ -80,7 +80,6 @@ func (h *DefaultHook) SetFormat(v string) { IgnoreFields: []string{ "ctx", "vars", - "keep", }, TimestampFormat: time.RFC3339, } @@ -89,7 +88,6 @@ func (h *DefaultHook) SetFormat(v string) { IgnoreFields: []string{ "ctx", "vars", - "keep", }, TimestampFormat: time.RFC3339, }