Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles committed Dec 17, 2024
1 parent a220f0f commit ff60433
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
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 backend/canisters/notifications_index/impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ canister_state_macros = { path = "../../../libraries/canister_state_macros" }
canister_tracing_macros = { path = "../../../libraries/canister_tracing_macros" }
constants = { path = "../../../libraries/constants" }
cycles_dispenser_canister = { path = "../../cycles_dispenser/api" }
fire_and_forget_handler = { path = "../../../libraries/fire_and_forget_handler" }
futures = { workspace = true }
http_request = { path = "../../../libraries/http_request" }
human_readable = { path = "../../../libraries/human_readable" }
Expand Down
4 changes: 0 additions & 4 deletions backend/canisters/notifications_index/impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use crate::model::notifications_canister::NotificationsCanister;
use crate::model::subscriptions::Subscriptions;
use candid::Principal;
use canister_state_macros::canister_state;
use fire_and_forget_handler::FireAndForgetHandler;
use notifications_index_canister::{NotificationsIndexEvent, SubscriptionAdded, SubscriptionRemoved};
use principal_to_user_id_map::PrincipalToUserIdMap;
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -132,8 +131,6 @@ struct Data {
pub notifications_canister_wasm_for_upgrades: CanisterWasm,
pub canisters_requiring_upgrade: CanistersRequiringUpgrade,
pub notifications_index_event_sync_queue: CanisterEventSyncQueue<NotificationsIndexEvent>,
#[serde(default)]
pub fire_and_forget_handler: FireAndForgetHandler,
pub rng_seed: [u8; 32],
pub test_mode: bool,
}
Expand Down Expand Up @@ -161,7 +158,6 @@ impl Data {
notifications_canister_wasm_for_upgrades: notifications_canister_wasm,
canisters_requiring_upgrade: CanistersRequiringUpgrade::default(),
notifications_index_event_sync_queue: CanisterEventSyncQueue::default(),
fire_and_forget_handler: FireAndForgetHandler::default(),
rng_seed: [0; 32],
test_mode,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ fn commit(canister_id: CanisterId, wasm_version: BuildVersion, state: &mut Runti
);
}

state.data.fire_and_forget_handler.send_candid(
state.data.cycles_dispenser_canister_id,
"add_canister",
cycles_dispenser_canister::add_canister::Args { canister_id },
);

Success
} else {
AlreadyAdded
Expand Down

0 comments on commit ff60433

Please sign in to comment.