@@ -313,8 +313,6 @@ type rtype struct {
313
313
t abi.Type
314
314
}
315
315
316
- // OverflowComplex reports whether the complex128 x cannot be represented by type t.
317
- // It panics if t's Kind is not Complex64 or Complex128.
318
316
func (t * rtype ) OverflowComplex (x complex128 ) bool {
319
317
k := t .Kind ()
320
318
switch k {
@@ -326,8 +324,6 @@ func (t *rtype) OverflowComplex(x complex128) bool {
326
324
panic ("reflect: OverflowComplex of non-complex type " + t .String ())
327
325
}
328
326
329
- // OverflowFloat reports whether the float64 x cannot be represented by type t.
330
- // It panics if t's Kind is not Float32 or Float64.
331
327
func (t * rtype ) OverflowFloat (x float64 ) bool {
332
328
k := t .Kind ()
333
329
switch k {
@@ -339,8 +335,6 @@ func (t *rtype) OverflowFloat(x float64) bool {
339
335
panic ("reflect: OverflowFloat of non-float type " + t .String ())
340
336
}
341
337
342
- // OverflowInt reports whether the int64 x cannot be represented by type t.
343
- // It panics if t's Kind is not Int, Int8, Int16, Int32, or Int64.
344
338
func (t * rtype ) OverflowInt (x int64 ) bool {
345
339
k := t .Kind ()
346
340
switch k {
@@ -352,8 +346,6 @@ func (t *rtype) OverflowInt(x int64) bool {
352
346
panic ("reflect: OverflowInt of non-int type " + t .String ())
353
347
}
354
348
355
- // OverflowUint reports whether the uint64 x cannot be represented by type t.
356
- // It panics if t's Kind is not Uint, Uintptr, Uint8, Uint16, Uint32, or Uint64.
357
349
func (t * rtype ) OverflowUint (x uint64 ) bool {
358
350
k := t .Kind ()
359
351
switch k {
0 commit comments