Skip to content

Commit 74542a0

Browse files
authored
refactor: remove redundant IO entry constructors (#553)
* refactor: remove redundant IO entry constructors * apply fix
1 parent e6b1bca commit 74542a0

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

vm/src/emulator/utils.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,6 @@ pub struct MemoryInitializationEntry {
117117

118118
io!(MemoryInitializationEntry);
119119

120-
impl MemoryInitializationEntry {
121-
pub fn new(address: u32, value: u8) -> Self {
122-
Self { address, value }
123-
}
124-
}
125-
126120
// One entry per byte because WO memory can be accessed bytewise
127121
#[derive(Debug, Copy, Clone)]
128122
pub struct PublicOutputEntry {
@@ -132,12 +126,6 @@ pub struct PublicOutputEntry {
132126

133127
io!(PublicOutputEntry);
134128

135-
impl PublicOutputEntry {
136-
pub fn new(address: u32, value: u8) -> Self {
137-
Self { address, value }
138-
}
139-
}
140-
141129
// One entry per instruction because program memory is always accessed instruction-wise
142130
#[derive(Debug, Copy, Clone)]
143131
pub struct ProgramMemoryEntry {

0 commit comments

Comments
 (0)