From 004f94239958b3310fa6e0551ee74d4cbb17fbbb Mon Sep 17 00:00:00 2001 From: Mars Saxman <112983328+mars-risc0@users.noreply.github.com> Date: Mon, 26 Aug 2024 12:13:55 -0700 Subject: [PATCH] delete unused test support function which prompts a compiler warning (#21) --- zirgen/circuit/bigint/op_tests.cpp | 11 ----------- zirgen/circuit/bigint/op_tests.h | 1 - 2 files changed, 12 deletions(-) diff --git a/zirgen/circuit/bigint/op_tests.cpp b/zirgen/circuit/bigint/op_tests.cpp index 73ce7465..9daf86d3 100644 --- a/zirgen/circuit/bigint/op_tests.cpp +++ b/zirgen/circuit/bigint/op_tests.cpp @@ -16,17 +16,6 @@ namespace zirgen::BigInt { -void makeConstZeroTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits) { - auto inp = builder.create( - loc, bits, 0, true); // Ignored, but not allowed to have no-input BigInt op - - mlir::Type zeroType = builder.getIntegerType(8, false); // unsigned 8 bit - auto zeroAttr = builder.getIntegerAttr(zeroType, 0); // value 0 - auto zero = builder.create(loc, zeroAttr); - - builder.create(loc, zero); -} - void makeConstOneTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits) { auto expected = builder.create(loc, bits, 0, true); diff --git a/zirgen/circuit/bigint/op_tests.h b/zirgen/circuit/bigint/op_tests.h index e8c1fcb2..a661b992 100644 --- a/zirgen/circuit/bigint/op_tests.h +++ b/zirgen/circuit/bigint/op_tests.h @@ -24,7 +24,6 @@ void makeConstAddTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits); void makeConstAddAltTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits); void makeConstMulTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits); void makeAddTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits); -void makeConstZeroTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits); void makeConstOneTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits); void makeConstTwoByteTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits); void makeSubTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits);