From 5ab95862abaaa1f7ce8c1c5924e6385fc6f7336c Mon Sep 17 00:00:00 2001 From: Hugo CAILLARD <911307+hugocaillard@users.noreply.github.com> Date: Mon, 2 Dec 2024 14:56:27 +0100 Subject: [PATCH] refactor: remove dead code --- components/clarity-repl/src/repl/interpreter.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/components/clarity-repl/src/repl/interpreter.rs b/components/clarity-repl/src/repl/interpreter.rs index 0c7c58c00..b3d801c57 100644 --- a/components/clarity-repl/src/repl/interpreter.rs +++ b/components/clarity-repl/src/repl/interpreter.rs @@ -839,17 +839,7 @@ impl ClarityInterpreter { &self.datastore, &self.datastore, ); - let tx_sender: PrincipalData = self.tx_sender.clone().into(); - - // this can probably be removed, even the clarity_version arg - // check if this is actually needed or not - // let start = std::time::Instant::now(); - // conn.begin(); - // conn.set_clarity_epoch_version(epoch) - // .map_err(|e| e.to_string())?; - // conn.commit().map_err(|e| e.to_string())?; - // println!("elapsed: {:?}", start.elapsed()); let cost_tracker = if track_costs { LimitedCostTracker::new( false, @@ -876,6 +866,7 @@ impl ClarityInterpreter { let contract_context = ContractContext::new(contract_id.clone(), clarity_version); + let tx_sender: PrincipalData = self.tx_sender.clone().into(); global_context.begin(); let result = global_context.execute(|g| { let mut call_stack = CallStack::new(); @@ -884,7 +875,7 @@ impl ClarityInterpreter { &contract_context, &mut call_stack, Some(tx_sender.clone()), - Some(tx_sender.clone()), + Some(tx_sender), None, );