Skip to content

Commit 484596a

Browse files
feat(shared): remove unused deprecated type SegmentCanisterStatus (#2485)
1 parent 75b1d76 commit 484596a

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

src/libs/shared/src/types.rs

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
pub mod state {
22
use crate::types::core::DomainName;
33
use crate::types::monitoring::{CyclesBalance, FundingFailure};
4+
use candid::CandidType;
45
use candid::Principal;
5-
use candid::{CandidType, Nat};
6-
use ic_cdk::management_canister::CanisterStatusType;
76
use serde::{Deserialize, Serialize};
87
use std::cmp::Ordering;
98
use std::collections::HashMap;
@@ -52,26 +51,6 @@ pub mod state {
5251
Submit,
5352
}
5453

55-
#[derive(CandidType, Serialize, Deserialize, Clone)]
56-
pub struct SegmentCanisterStatus {
57-
pub status: CanisterStatusType,
58-
pub settings: SegmentCanisterSettings,
59-
pub module_hash: Option<Vec<u8>>,
60-
pub memory_size: Nat,
61-
pub cycles: Nat,
62-
pub idle_cycles_burned_per_day: Nat,
63-
}
64-
65-
// Prevent breaking changes in DefiniteCanisterSettings which we do not use
66-
#[deprecated]
67-
#[derive(CandidType, Serialize, Deserialize, Clone)]
68-
pub struct SegmentCanisterSettings {
69-
pub controllers: Vec<Principal>,
70-
pub compute_allocation: Nat,
71-
pub memory_allocation: Nat,
72-
pub freezing_threshold: Nat,
73-
}
74-
7554
#[derive(CandidType, Serialize, Deserialize, Copy, Clone, Debug, PartialEq, Eq, Hash)]
7655
pub enum SegmentKind {
7756
Satellite,

0 commit comments

Comments
 (0)