Remove unused code

This commit is contained in:
Tobie Morgan Hitchcock 2018-07-12 02:49:35 +01:00
parent fed44641cc
commit 0e4557bdd3
2 changed files with 0 additions and 9 deletions

View file

@ -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

View file

@ -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,
}