@@ -41,14 +41,14 @@ pub enum BuiltinCost {
41
41
}
42
42
43
43
impl BuiltinCost {
44
- pub fn native_cost ( & self ) -> u64 {
44
+ fn native_cost ( & self ) -> u64 {
45
45
match self {
46
46
BuiltinCost :: Migrating ( MigratingBuiltinCost { native_cost, .. } ) => * native_cost,
47
47
BuiltinCost :: NotMigrating ( NotMigratingBuiltinCost { native_cost } ) => * native_cost,
48
48
}
49
49
}
50
50
51
- pub fn core_bpf_migration_feature ( & self ) -> Option < & Pubkey > {
51
+ fn core_bpf_migration_feature ( & self ) -> Option < & Pubkey > {
52
52
match self {
53
53
BuiltinCost :: Migrating ( MigratingBuiltinCost {
54
54
core_bpf_migration_feature,
@@ -58,7 +58,7 @@ impl BuiltinCost {
58
58
}
59
59
}
60
60
61
- pub fn position ( & self ) -> Option < usize > {
61
+ fn position ( & self ) -> Option < usize > {
62
62
match self {
63
63
BuiltinCost :: Migrating ( MigratingBuiltinCost { position, .. } ) => Some ( * position) ,
64
64
BuiltinCost :: NotMigrating ( _) => None ,
@@ -137,7 +137,7 @@ pub const MIGRATING_BUILTINS_COSTS: &[(Pubkey, BuiltinCost)] = &[
137
137
) ,
138
138
] ;
139
139
140
- pub const NON_MIGRATING_BUILTINS_COSTS : & [ ( Pubkey , BuiltinCost ) ] = & [
140
+ const NON_MIGRATING_BUILTINS_COSTS : & [ ( Pubkey , BuiltinCost ) ] = & [
141
141
(
142
142
vote:: id ( ) ,
143
143
BuiltinCost :: NotMigrating ( NotMigratingBuiltinCost {
0 commit comments