mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
remove String method
This commit is contained in:
parent
49e52d311e
commit
1478e21f90
1 changed files with 0 additions and 12 deletions
|
|
@ -91,18 +91,6 @@ func (z *Int) Bytes() []byte {
|
|||
return buf
|
||||
}
|
||||
|
||||
// String returns the decimal representation of z
|
||||
func (z *Int) String() string {
|
||||
if z == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
|
||||
// Get string from GMP
|
||||
cs := C.mpz_get_str(nil, 10, &z.mpz[0])
|
||||
defer C.free(unsafe.Pointer(cs))
|
||||
|
||||
return C.GoString(cs)
|
||||
}
|
||||
|
||||
// BitLen returns the number of bits required to represent z
|
||||
func (z *Int) BitLen() int {
|
||||
|
|
|
|||
Loading…
Reference in a new issue