From ba71ae6665c011ae861a7093e170d995151eb56f Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 17 Apr 2017 15:57:19 +0800 Subject: [PATCH] remove unused comments --- session.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/session.go b/session.go index 213f46fd..475c769f 100644 --- a/session.go +++ b/session.go @@ -551,16 +551,11 @@ func (session *Session) row2Bean(rows *core.Rows, fields []string, fieldsCount i // !nashtsai! convert to engine location t = t.In(tz) fieldValue.Set(reflect.ValueOf(t).Convert(fieldType)) - - // t = fieldValue.Interface().(time.Time) - // z, _ = t.Zone() - // session.Engine.LogDebug("fieldValue key[%v]: %v | zone: %v | location: %+v\n", key, t, z, *t.Location()) } else if rawValueType == core.IntType || rawValueType == core.Int64Type || rawValueType == core.Int32Type { hasAssigned = true t := time.Unix(vv.Int(), 0).In(tz) - //vv = reflect.ValueOf(t) fieldValue.Set(reflect.ValueOf(t).Convert(fieldType)) } else { if d, ok := vv.Interface().([]uint8); ok { @@ -642,8 +637,6 @@ func (session *Session) row2Bean(rows *core.Rows, fields []string, fieldsCount i return nil, err } if has { - //v := structInter.Elem().Interface() - //fieldValue.Set(reflect.ValueOf(v)) fieldValue.Set(structInter.Elem()) } else { return nil, errors.New("cascade obj is not exist") @@ -652,7 +645,6 @@ func (session *Session) row2Bean(rows *core.Rows, fields []string, fieldsCount i } case reflect.Ptr: // !nashtsai! TODO merge duplicated codes above - //typeStr := fieldType.String() switch fieldType { // following types case matching ptr's native type, therefore assign ptr directly case core.PtrStringType: