Skip to content

Commit c487618

Browse files
chore: remove unused functions (#65)
Co-authored-by: jialinli <[email protected]>
1 parent 8adc6a8 commit c487618

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

src/_comparison_tools/lt.nr

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,6 @@ pub fn lt_field_16_bit(x: Field, y: Field) -> bool {
5454
predicate
5555
}
5656

57-
pub fn lt_field_8_bit(x: Field, y: Field) -> bool {
58-
// Safety: check the comments below
59-
let predicate = unsafe { get_lt_predicate_f(x, y) };
60-
let delta = y as Field - x as Field;
61-
let lt_parameter = 2 * (predicate as Field) * delta - predicate as Field - delta;
62-
// checks that the bit length of lt_parameter is 8
63-
// i.e. checks the sign of lt_parameter
64-
lt_parameter.assert_max_bit_size::<8>();
65-
66-
predicate
67-
}
68-
6957
pub fn assert_gt_240_bit(lhs: Field, rhs: Field) {
7058
// lhs > rhs
7159
// -> lhs - rhs > 0

src/_table_generation/make_tables.nr

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,28 +46,6 @@ global CAPTURE_ERROR_FLAG: [[bool; 128]; 4] = [
4646
LITERAL_CAPTURE_ERROR_FLAG,
4747
];
4848

49-
unconstrained fn make_capture_table_full() -> [[Field; 128]; 4] {
50-
let mut result: [[Field; 128]; 4] = [[0; 128]; 4];
51-
for i in 0..4 {
52-
for j in 0..128 {
53-
let table = CAPTURE_TABLE[i][j];
54-
let token = CAPTURE_TOKEN[i][j];
55-
let push_transcript = CAPTURE_PUSH_TRANSCRIPT[i][j] as Field;
56-
let increase_length = CAPTURE_INCREASE_LENGTH[i][j] as Field;
57-
let error = CAPTURE_ERROR_FLAG[i][j] as Field;
58-
59-
let full = table
60-
+ token as Field * 0x100
61-
+ push_transcript * 0x10000
62-
+ increase_length * 0x1000000
63-
+ error * 0x100000000;
64-
result[i][j] = full;
65-
}
66-
}
67-
68-
result
69-
}
70-
7149
unconstrained fn make_ascii_to_token_table() -> [Field; 1024] {
7250
let mut result: [Field; 256 * 4] = [0; 256 * 4];
7351
for i in 0..4 {

0 commit comments

Comments
 (0)