Skip to content

Commit

Permalink
remove unused enum variant
Browse files Browse the repository at this point in the history
  • Loading branch information
Roznovjak committed Jul 7, 2021
1 parent 452e4d5 commit f37a3de
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions pallets/transaction-multi-payment/src/lib.rs
Expand Up @@ -380,7 +380,6 @@ impl<T: Config> Pallet<T> {
match result {
PaymentSwapResult::Transferred => Ok(()),
PaymentSwapResult::Native | PaymentSwapResult::Swapped => T::MultiCurrency::withdraw(CORE_ASSET_ID, who, fee),
PaymentSwapResult::Error => Err(Error::<T>::Overflow.into()),
}
}

Expand Down Expand Up @@ -465,7 +464,6 @@ where
if let Ok(detail) = SW::swap(&who, fee.into()) {
match detail {
PaymentSwapResult::Transferred => Ok(None),
PaymentSwapResult::Error => Err(InvalidTransaction::Payment.into()),
PaymentSwapResult::Native | PaymentSwapResult::Swapped => {
match C::withdraw(who, fee, withdraw_reason, ExistenceRequirement::KeepAlive) {
Ok(imbalance) => Ok(Some(imbalance)),
Expand Down
1 change: 0 additions & 1 deletion pallets/transaction-multi-payment/src/traits.rs
@@ -1,7 +1,6 @@
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum PaymentSwapResult {
Native,
Error,
Swapped,
Transferred,
}
Expand Down

0 comments on commit f37a3de

Please sign in to comment.