Skip to content

Commit 1798523

Browse files
committed
Merge branch 'NNS1-1411' into 'master'
NNS1-1411: Remove cleanup code for CRP-1449 switch This removes some migration code in post_upgrade for CRP-1449. See merge request dfinity-lab/public/ic!12555
2 parents a1f503d + abc0255 commit 1798523

File tree

2 files changed

+13
-339
lines changed

2 files changed

+13
-339
lines changed

rs/registry/canister/src/registry.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ use ic_registry_transport::{
1414
};
1515
use ic_types::messages::MAX_INTER_CANISTER_PAYLOAD_IN_BYTES_U64;
1616
use prost::Message;
17-
use std::cmp::max;
18-
use std::collections::{BTreeMap, VecDeque};
19-
use std::fmt;
17+
use std::{
18+
cmp::max,
19+
collections::{BTreeMap, VecDeque},
20+
fmt,
21+
};
2022

2123
#[cfg(target_arch = "wasm32")]
2224
use dfn_core::println;
@@ -244,13 +246,6 @@ impl Registry {
244246
self.apply_mutations_as_version(mutations, self.version);
245247
}
246248

247-
/// This is needed to test certain edge cases where the registry is in an invalid state
248-
/// such as when a new invariant is added.
249-
#[cfg(test)]
250-
pub(crate) fn dangerously_apply_mutations(&mut self, mutations: Vec<RegistryMutation>) {
251-
self.apply_mutations(mutations)
252-
}
253-
254249
/// Verifies the implicit precondition corresponding to the mutation_type
255250
/// field.
256251
fn verify_mutation_type(&self, mutations: &[RegistryMutation]) -> Vec<Error> {

0 commit comments

Comments
 (0)