Skip to content

Commit

Permalink
Remove old RefCell code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Feb 9, 2024
1 parent 0630e36 commit b87f138
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/allocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use crate::err_utils::err;
use crate::number::{node_from_number, number_from_u8, Number};
use crate::reduction::EvalErr;
use chia_bls::{G1Element, G2Element};
use std::cell::RefCell;

const MAX_NUM_ATOMS: usize = 62500000;
const MAX_NUM_PAIRS: usize = 62500000;
Expand Down Expand Up @@ -199,11 +198,6 @@ impl Allocator {
// we have a maximum of 4 GiB heap, because pointers are 32 bit unsigned
assert!(heap_limit <= u32::MAX as usize);

let mut temp_vec = Vec::<RefCell<[u8; 4]>>::with_capacity(64);
for _ in 0..16 {
temp_vec.push(RefCell::default());
}

let mut r = Self {
u8_vec: Vec::new(),
pair_vec: Vec::new(),
Expand Down

0 comments on commit b87f138

Please sign in to comment.