From 6c0ee32256f52a406509a7213bfc7f4bec28b6bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Venturo?= Date: Thu, 27 Jun 2024 20:42:48 +0000 Subject: [PATCH] Remove commented code --- .../aztec-nr/aztec/src/public_storage.nr | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/noir-projects/aztec-nr/aztec/src/public_storage.nr b/noir-projects/aztec-nr/aztec/src/public_storage.nr index 59bc25b51970..b9a34811babc 100644 --- a/noir-projects/aztec-nr/aztec/src/public_storage.nr +++ b/noir-projects/aztec-nr/aztec/src/public_storage.nr @@ -9,22 +9,6 @@ pub fn write(storage_slot: Field, value: T) where T: Serialize { storage_write(storage_slot, value.serialize()); } -// Ideally we'd do the following, but we cannot because of https://github.com/noir-lang/noir/issues/4633 -// pub fn read_historical( -// storage_slot: Field, -// context: PrivateContext -// ) -> T where T: Deserialize { -// let mut fields = [0; N]; -// for i in 0..N { -// fields[i] = public_storage_historical_read( -// context, -// storage_slot + i as Field, -// context.this_address() -// ); -// } -// T::deserialize(fields) -// } - mod tests { use std::test::OracleMock; use dep::protocol_types::traits::{Deserialize, Serialize};