From 1478e21f908ba769409a47e8aa2bfd625570071f Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Tue, 8 Jul 2025 16:57:36 +0100 Subject: [PATCH] remove String method --- crypto/modexp/gmp/generic/gmp.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/crypto/modexp/gmp/generic/gmp.go b/crypto/modexp/gmp/generic/gmp.go index c06fca65ee..43a47df52e 100644 --- a/crypto/modexp/gmp/generic/gmp.go +++ b/crypto/modexp/gmp/generic/gmp.go @@ -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 "" - } - - // 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 {