Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Sep 16, 2024
1 parent 5975c9c commit 3d5cbf9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 39 deletions.
4 changes: 0 additions & 4 deletions core/payment-driver/base/src/bus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ pub async fn bind_service<Driver: PaymentDriver + 'static>(
.bind_with_processor(
move |_, dr, c, m| async move { dr.schedule_payment( c, m).await }
)
/*
.bind_with_processor(
move |_, dr, c, m| async move { dr.try_update_payment( c, m).await }
)*/
.bind_with_processor(
move |_, dr, c, m| async move { dr.flush_payments( c, m).await }
)
Expand Down
7 changes: 0 additions & 7 deletions core/payment-driver/base/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,6 @@ pub trait PaymentDriver {
msg: ScheduleDriverPayment,
) -> Result<String, GenericError>;

/*
async fn try_update_payment(
&self,
caller: String,
msg: TryUpdatePayment,
) -> Result<TryUpdatePaymentResult, GenericError>;
*/
async fn flush_payments(
&self,
caller: String,
Expand Down
28 changes: 0 additions & 28 deletions core/payment-driver/erc20/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1133,34 +1133,6 @@ impl PaymentDriver for Erc20Driver {
.await
}

/*
async fn try_update_payment(
&self,
_caller: String,
msg: TryUpdatePayment,
) -> Result<TryUpdatePaymentResult, GenericError> {
log::debug!("try_update_payment: {:?}", msg);
let platform = msg.platform();
let network = platform.split('-').nth(1).ok_or(GenericError::new(format!(
"Malformed platform string: {}",
msg.platform()
)))?;
let transfer_margin = Duration::minutes(2);
self.update_transfer(
&msg.payment_id(),
&msg.sender(),
&msg.recipient(),
&msg.amount(),
network,
Some(msg.due_date() - transfer_margin),
msg.deposit_id(),
)
.await
}
*/
async fn schedule_payment(
&self,
_caller: String,
Expand Down

0 comments on commit 3d5cbf9

Please sign in to comment.