Skip to content

Commit a7f410d

Browse files
Removing unnecessary function
1 parent 770a486 commit a7f410d

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

oracle/common.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -276,24 +276,6 @@ func convertFromOracleToField(value interface{}, field *schema.Field) interface{
276276
return converted
277277
}
278278

279-
// Helper function to check if a value should be treated as nil for pointer fields
280-
func isZeroValueForPointer(value interface{}, targetType reflect.Type) bool {
281-
v := reflect.ValueOf(value)
282-
if !v.IsValid() || v.Kind() != targetType.Kind() {
283-
return false
284-
}
285-
286-
switch targetType.Kind() {
287-
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
288-
return v.Int() == 0
289-
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
290-
return v.Uint() == 0
291-
case reflect.Float32, reflect.Float64:
292-
return v.Float() == 0.0
293-
}
294-
return false
295-
}
296-
297279
// Helper function to handle primitive type conversions
298280
func convertPrimitiveType(value interface{}, targetType reflect.Type) interface{} {
299281
switch targetType.Kind() {

0 commit comments

Comments
 (0)