Skip to content

Commit

Permalink
test: Remove unused evmmax::ModArith variables (#981)
Browse files Browse the repository at this point in the history
Reported by clang-19.
  • Loading branch information
chfast authored Sep 1, 2024
1 parent 4633b78 commit 112147e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions test/unittests/evmmax_bn254_add_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ const TestCase

TEST(evmmax, bn254_validate_inputs)
{
const evmmax::ModArith s{evmmax::bn254::FieldPrime};

for (const auto& t : test_cases)
{
ASSERT_EQ(t.input.size(), 128);
Expand All @@ -139,8 +137,6 @@ TEST(evmmax, bn254_validate_inputs)

TEST(evmmax, bn254_pt_add)
{
const evmmax::ModArith s{evmmax::bn254::FieldPrime};

for (const auto& t : test_cases)
{
const Point a{
Expand Down
4 changes: 0 additions & 4 deletions test/unittests/evmmax_bn254_mul_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,6 @@ const TestCase

TEST(evmmax, bn254_mul_validate_inputs)
{
const evmmax::ModArith s{evmmax::bn254::FieldPrime};

for (const auto& t : test_cases)
{
ASSERT_EQ(t.input.size(), 96);
Expand All @@ -232,8 +230,6 @@ TEST(evmmax, bn254_mul_validate_inputs)

TEST(evmmax, bn254_pt_mul)
{
const evmmax::ModArith s{evmmax::bn254::FieldPrime};

for (const auto& t : test_cases)
{
const Point p{
Expand Down
4 changes: 0 additions & 4 deletions test/unittests/evmmax_secp256k1_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ TEST(evmmax, secp256k1_pt_add_inf)

TEST(evmmax, secp256k1_pt_add)
{
const evmmax::ModArith s{evmmax::secp256k1::FieldPrime};

const Point p1{0x18f4057699e2d9679421de8f4e11d7df9fa4b9e7cb841ea48aed75f1567b9731_u256,
0x6db5b7ecd8e226c06f538d15173267bf1e78acc02bb856e83b3d6daec6a68144_u256};
const Point p2{0xf929e07c83d65da3569113ae03998d13359ba982216285a686f4d66e721a0beb_u256,
Expand Down Expand Up @@ -261,8 +259,6 @@ TEST(evmmax, secp256k1_pt_mul_inf)

TEST(evmmax, secp256k1_pt_mul)
{
const evmmax::ModArith s{evmmax::secp256k1::FieldPrime};

const Point p1{0x18f4057699e2d9679421de8f4e11d7df9fa4b9e7cb841ea48aed75f1567b9731_u256,
0x6db5b7ecd8e226c06f538d15173267bf1e78acc02bb856e83b3d6daec6a68144_u256};

Expand Down

0 comments on commit 112147e

Please sign in to comment.