remove commented codes

This commit is contained in:
Nash Tsai 2014-01-08 18:42:47 +08:00
parent 07b2d15a26
commit 9771433266
1 changed files with 0 additions and 12 deletions

View File

@ -1119,11 +1119,6 @@ func (session *Session) Find(rowsSlicePtr interface{}, condiBean ...interface{})
for rawRows.Next() {
var newValue reflect.Value = newElemFunc()
// if sliceElementType.Kind() == reflect.Ptr {
// newValue = reflect.New(sliceElementType.Elem())
// } else {
// newValue = reflect.New(sliceElementType)
// }
if sliceValueSetFunc != nil {
err := session.row2Bean(rawRows, fields, fieldsCount, newValue.Interface())
if err != nil {
@ -1131,13 +1126,6 @@ func (session *Session) Find(rowsSlicePtr interface{}, condiBean ...interface{})
}
sliceValueSetFunc(&newValue)
}
// // if sliceValue.Kind() == reflect.Slice {
// // if sliceElementType.Kind() == reflect.Ptr {
// // sliceValue.Set(reflect.Append(sliceValue, reflect.ValueOf(newValue.Interface())))
// // } else {
// // sliceValue.Set(reflect.Append(sliceValue, reflect.Indirect(reflect.ValueOf(newValue.Interface()))))
// // }
// // }
}
} else {
resultsSlice, err := session.query(sqlStr, args...)