Skip to content

Commit

Permalink
chore(core-processor): remove pages_with_data from `ExecutableActor…
Browse files Browse the repository at this point in the history
…Data` (#3950)
  • Loading branch information
grishasobol authored May 12, 2024
1 parent 61aed20 commit b5cdff7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions core-processor/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,6 @@ pub struct ExecutableActorData {
pub allocations: BTreeSet<WasmPage>,
/// The infix of memory pages in a storage.
pub memory_infix: MemoryInfix,
/// Set of gear pages numbers, which has data in storage.
pub pages_with_data: BTreeSet<GearPage>,
/// Id of the program code.
pub code_id: CodeId,
/// Exported functions by the program code.
Expand Down
3 changes: 1 addition & 2 deletions gtest/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl TestActor {

// Gets a new executable actor derived from the inner program.
fn get_executable_actor_data(&self) -> Option<(ExecutableActorData, CoreProgram)> {
let (program, pages_data, code_id, gas_reservation_map) = match self {
let (program, _, code_id, gas_reservation_map) = match self {
TestActor::Initialized(Program::Genuine {
program,
pages_data,
Expand Down Expand Up @@ -161,7 +161,6 @@ impl TestActor {
code_id: *code_id,
code_exports: program.code().exports().clone(),
static_pages: program.code().static_pages(),
pages_with_data: pages_data.keys().cloned().collect(),
gas_reservation_map,
memory_infix: program.memory_infix(),
},
Expand Down
1 change: 0 additions & 1 deletion pallets/gear/src/manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ where
code_id,
code_exports: active.code_exports,
static_pages: active.static_pages,
pages_with_data: active.pages_with_data,
gas_reservation_map: active.gas_reservation_map,
memory_infix: active.memory_infix,
},
Expand Down
1 change: 0 additions & 1 deletion pallets/gear/src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ where
code_id: program.code_hash.cast(),
code_exports: program.code_exports,
static_pages: program.static_pages,
pages_with_data: program.pages_with_data,
gas_reservation_map: program.gas_reservation_map,
memory_infix: program.memory_infix,
};
Expand Down

0 comments on commit b5cdff7

Please sign in to comment.