From 4437b2b8a512c701a75382d006d5f36dfa6beb01 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 27 Nov 2017 14:21:56 +0000 Subject: [PATCH] Remove old and unused code --- db/fetch.go | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/db/fetch.go b/db/fetch.go index dfa550a2..f10ca165 100644 --- a/db/fetch.go +++ b/db/fetch.go @@ -23,12 +23,10 @@ import ( "strconv" "time" - // "github.com/abcum/surreal/cnf" "github.com/abcum/surreal/sql" "github.com/abcum/surreal/util/data" "github.com/abcum/surreal/util/deep" "github.com/abcum/surreal/util/fncs" - // "github.com/abcum/surreal/util/keys" ) var ign = data.New() @@ -51,29 +49,6 @@ func (e *executor) fetch(ctx context.Context, val interface{}, doc *data.Doc) (o // TODO do we really need to copy? return deep.Copy(val), nil - // case *sql.Thing: - - // if doc == nil { - // return val, nil - // } - - // s := &sql.SelectStatement{ - // KV: cnf.Settings.DB.Base, NS: "test", DB: "test", - // Expr: []*sql.Field{{Expr: &sql.All{}, Field: "*"}}, - // What: []sql.Expr{val}, - // } - // i := newIterator(e, ctx, s, false) - // key := &keys.Thing{KV: s.KV, NS: s.NS, DB: s.DB, TB: val.TB, ID: val.ID} - // i.processThing(ctx, key) - // res, err := i.Yield(ctx) - // if err != nil { - // return nil, err - // } - // if len(res) > 0 { - // return res[0], nil - // } - // return val, nil - case *sql.Ident: switch {