Skip to content

Commit d9eb089

Browse files
committed
Remove unused function
1 parent 6be24eb commit d9eb089

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pgtype/pgtype.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,18 +2032,6 @@ func (w *sqlScannerWrapper) Scan(src any) error {
20322032
return w.m.Scan(t.OID, TextFormatCode, bufSrc, w.v)
20332033
}
20342034

2035-
// canBeNil returns true if value can be nil.
2036-
func canBeNil(value any) bool {
2037-
refVal := reflect.ValueOf(value)
2038-
kind := refVal.Kind()
2039-
switch kind {
2040-
case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice:
2041-
return true
2042-
default:
2043-
return false
2044-
}
2045-
}
2046-
20472035
// valuerReflectType is a reflect.Type for driver.Valuer. It has confusing syntax because reflect.TypeOf returns nil
20482036
// when it's argument is a nil interface value. So we use a pointer to the interface and call Elem to get the actual
20492037
// type. Yuck.

0 commit comments

Comments
 (0)