core: fix unused warnings (#1811)

This commit is contained in:
wit liu 2025-12-07 18:09:31 +08:00 committed by GitHub
parent 940fd2adbd
commit 5ada9b8866
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 0 additions and 21 deletions

View file

@ -742,7 +742,6 @@ func TestPostponing(t *testing.T) {
// Add a batch consecutive pending transactions for validation
txs := []*types.Transaction{}
for i, key := range keys {
for j := 0; j < 10; j++ {
var tx *types.Transaction
if (i+j)%2 == 0 {

View file

@ -78,7 +78,6 @@ func (b Bloom) Test(test *big.Int) bool {
func (b Bloom) TestBytes(test []byte) bool {
return b.Test(new(big.Int).SetBytes(test))
}
// MarshalText encodes b as a hex string with 0x prefix.

View file

@ -216,7 +216,6 @@ func (lendingsign LendingTxSigner) Sender(tx *LendingTransaction) (common.Addres
}
address := crypto.PubkeyToAddress(*pubKey)
return address, nil
}
// CacheLendingSigner cache signed lending transaction

View file

@ -87,8 +87,6 @@ var (
to3 = common.HexToAddress("0x3")
to4 = common.HexToAddress("0x4")
to5 = common.HexToAddress("0x5")
to6 = common.HexToAddress("0x6")
to7 = common.HexToAddress("0x7")
txs = Transactions{
NewTx(&LegacyTx{
Nonce: 1,
@ -130,7 +128,6 @@ var (
}
blockNumber = big.NewInt(1)
blockTime = uint64(2)
blockHash = common.BytesToHash([]byte{0x03, 0x14})
// Create the corresponding receipts

View file

@ -62,19 +62,6 @@ type RingSignature struct {
SerializedRing []byte //temporary memory stored the raw ring ct used in case of verifying ringCT with message verification
}
func (p *PrivateSendVerifier) verify() bool {
return false
}
func (p *PrivateSendVerifier) deserialize() {
}
// helper function, returns type of v
func typeof(v interface{}) string {
return fmt.Sprintf("%T", v)
}
func isOdd(a *big.Int) bool {
return a.Bit(0) == 1
}
@ -195,7 +182,6 @@ func computeSignatureSize(numRing int, ringSize int) int {
if term < 0 || term < numRing || term < ringSize {
return -1
}
return 8 + 8 + 32 + 32 + numRing*ringSize*32 + numRing*ringSize*33 + numRing*33
}

View file

@ -491,7 +491,6 @@ func TestEip2929Cases(t *testing.T) {
t.Skip("Test only useful for generating documentation")
id := 1
prettyPrint := func(comment string, code []byte) {
instrs := make([]string, 0)
it := asm.NewInstructionIterator(code)
for it.Next() {