Skip to content

Commit

Permalink
remove pub visibility for some of the builtin-default-costs functions
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 committed Jan 15, 2025
1 parent 8c879f8 commit 4670e12
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions builtins-default-costs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,13 @@ enum BuiltinCost {
}

impl BuiltinCost {
#[cfg_attr(feature = "svm-internal", qualifiers(pub))]
fn native_cost(&self) -> u64 {
match self {
BuiltinCost::Migrating(MigratingBuiltinCost { native_cost, .. }) => *native_cost,
BuiltinCost::NotMigrating(NotMigratingBuiltinCost { native_cost }) => *native_cost,
}
}

#[cfg(feature = "svm-internal")]
#[cfg_attr(feature = "svm-internal", qualifiers(pub))]
fn core_bpf_migration_feature(&self) -> Option<&Pubkey> {
match self {
BuiltinCost::Migrating(MigratingBuiltinCost {
Expand All @@ -66,16 +63,13 @@ impl BuiltinCost {
}
}

#[cfg(feature = "svm-internal")]
#[cfg_attr(feature = "svm-internal", qualifiers(pub))]
fn position(&self) -> Option<usize> {
match self {
BuiltinCost::Migrating(MigratingBuiltinCost { position, .. }) => Some(*position),
BuiltinCost::NotMigrating(_) => None,
}
}

#[cfg_attr(feature = "svm-internal", qualifiers(pub))]
fn has_migrated(&self, feature_set: &FeatureSet) -> bool {
match self {
BuiltinCost::Migrating(MigratingBuiltinCost {
Expand Down

0 comments on commit 4670e12

Please sign in to comment.