Skip to content

Commit

Permalink
refactor: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Dec 2, 2024
1 parent f3909ff commit 5ab9586
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions components/clarity-repl/src/repl/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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();
Expand All @@ -884,7 +875,7 @@ impl ClarityInterpreter {
&contract_context,
&mut call_stack,
Some(tx_sender.clone()),
Some(tx_sender.clone()),
Some(tx_sender),
None,
);

Expand Down

0 comments on commit 5ab9586

Please sign in to comment.