diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 94446b1db5afa3..2d5e9ac8584fe4 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -7414,22 +7414,6 @@ impl Bank { debug!("Added program {} under {:?}", name, program_id); } - /// Remove a builtin instruction processor if it already exists - pub fn remove_builtin(&mut self, program_id: &Pubkey) { - debug!("Removing program {}", program_id); - // Don't remove the account since the bank expects the account state to - // be idempotent - if let Some(position) = self - .builtin_programs - .vec - .iter() - .position(|entry| entry.0 == *program_id) - { - self.builtin_programs.vec.remove(position); - } - debug!("Removed program {}", program_id); - } - pub fn add_precompile(&mut self, program_id: &Pubkey) { debug!("Adding precompiled program {}", program_id); self.add_precompiled_account(program_id);