Skip to content

Commit ca8632b

Browse files
committed
Remove unused canister_b_idl function and its related IDL generation code
1 parent 1a18fe5 commit ca8632b

File tree

1 file changed

+0
-11
lines changed
  • ic-canister/tests/canister-b/src

1 file changed

+0
-11
lines changed

ic-canister/tests/canister-b/src/lib.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,6 @@ use ic_canister::{
99
use ic_exports::candid::{CandidType, Deserialize, Principal};
1010
use ic_storage::IcStorage;
1111

12-
// #[ic_canister::export_candid]
13-
pub fn canister_b_idl() -> String {
14-
use ic_canister::Idl;
15-
16-
let canister_b_idl = generate_idl!();
17-
let mut canister_a_idl = <CanisterB as CanisterA>::get_idl();
18-
canister_a_idl.merge(&canister_b_idl);
19-
20-
candid::pretty::candid::compile(&canister_a_idl.env.env, &Some(canister_a_idl.actor))
21-
}
22-
2312
#[derive(IcStorage, CandidType, Deserialize)]
2413
struct StateB {
2514
canister_a: Principal,

0 commit comments

Comments
 (0)