Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: drop unused contract preloading infrastructure #7042

Merged
merged 1 commit into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion runtime/near-vm-runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ near-vm-errors = { path = "../near-vm-errors" }
near-primitives = { path = "../../core/primitives" }
near-stable-hasher = { path = "../../utils/near-stable-hasher" }
tracing = { version = "0.1", default-features = false }
threadpool = "1.8.1"

# Old versions of pwasm-utils we need to preserve backwards compatibility under
# old protocol versions.
Expand Down
4 changes: 0 additions & 4 deletions runtime/near-vm-runner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ mod imports;
mod instrument;
#[cfg(all(feature = "wasmer0_vm", target_arch = "x86_64"))]
mod memory;
#[cfg(target_arch = "x86_64")]
mod preload;
pub mod prepare;
mod runner;
#[cfg(test)]
Expand All @@ -26,8 +24,6 @@ pub use near_vm_logic::with_ext_cost_counter;
pub use cache::{
get_contract_cache_key, precompile_contract, precompile_contract_vm, MockCompiledContractCache,
};
#[cfg(target_arch = "x86_64")]
pub use preload::{ContractCallPrepareRequest, ContractCallPrepareResult, ContractCaller};
pub use runner::{run, VMResult, VM};

/// This is public for internal experimentation use only, and should otherwise be considered an
Expand Down
228 changes: 0 additions & 228 deletions runtime/near-vm-runner/src/preload.rs

This file was deleted.

1 change: 0 additions & 1 deletion runtime/near-vm-runner/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
mod cache;
mod compile_errors;
mod contract_preload;
mod rs_contract;
mod runtime_errors;
pub(crate) mod test_builder;
Expand Down
Loading