Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
[core] Remove unnecessary code due changes in master in the meantime
  • Loading branch information
cmichi committed Jun 23, 2020
commit a88a43b1a297de2a1d54bbc67d21081f951a0b03
4 changes: 2 additions & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ scale-info = { version = "0.2", default-features = false, features = ["derive"],
criterion = { version = "0.3", optional = true }

[dev-dependencies]
quickcheck = "0.9.0"
quickcheck_macros = "0.8.0"
quickcheck = "0.9"
quickcheck_macros = "0.8"
itertools = "0.9"

[features]
Expand Down
16 changes: 0 additions & 16 deletions core/src/env/engine/off_chain/test_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,22 +336,6 @@ where
f(default_accounts)
}

/// Runs the given closure test function with the default configuration
/// for the off-chain environment.
///
/// Doesn't reuse an off-chain environment which might already exist in
/// this thread, but instead uses a new off-chain environment instance.
pub fn run_multiple_tests_in_thread<T, F>(f: F) -> Result<()>
where
T: EnvTypes,
F: FnOnce(DefaultAccounts<T>) -> Result<()>,
<T as EnvTypes>::AccountId: From<[u8; 32]>,
{
recreate_and_initialize_as_default::<T>()?;
let default_accounts = default_accounts::<T>()?;
f(default_accounts)
}

/// Returns the total number of reads and writes of the contract's storage.
pub fn get_contract_storage_rw<T>(account_id: &T::AccountId) -> Result<(usize, usize)>
where
Expand Down
323 changes: 0 additions & 323 deletions core/src/storage/collections/hash_map/tests.rs

This file was deleted.

Loading