Skip to content

Commit

Permalink
Remove no more accessed code
Browse files Browse the repository at this point in the history
  • Loading branch information
samiuelson committed Nov 22, 2024
1 parent e73ba2b commit 8488745
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ data class NavigateToOrderDetails(
val orderId: Long
) : MultiLiveEvent.Event()

sealed class ReturnResultToWooPos : MultiLiveEvent.Event() {
data object Success : ReturnResultToWooPos()
data object Failure : ReturnResultToWooPos()
}

data class NavigateToTapToPaySummary(
val order: Order
) : MultiLiveEvent.Event()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import com.woocommerce.android.ui.payments.methodselection.SelectPaymentMethodVi
import com.woocommerce.android.ui.payments.methodselection.SelectPaymentMethodViewState.Success
import com.woocommerce.android.ui.payments.scantopay.ScanToPayDialogFragment
import com.woocommerce.android.ui.payments.taptopay.summary.TapToPaySummaryFragment
import com.woocommerce.android.ui.woopos.cardreader.WooPosCardReaderActivity
import com.woocommerce.android.util.ChromeCustomTabUtils
import com.woocommerce.android.util.UiHelpers
import com.woocommerce.android.viewmodel.MultiLiveEvent.Event.ShowDialog
Expand Down Expand Up @@ -276,13 +275,6 @@ class SelectPaymentMethodFragment : BaseFragment(R.layout.fragment_select_paymen
)
)
}

is ReturnResultToWooPos -> {
parentFragmentManager.setFragmentResult(
WooPosCardReaderActivity.WOO_POS_CARD_PAYMENT_REQUEST_KEY,
Bundle()
)
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,6 @@ class SelectPaymentMethodViewModel @Inject constructor(
flow = cardReaderPaymentFlowParam.toAnalyticsFlowName(),
)
}
if (cardReaderPaymentFlowParam.paymentType == WOO_POS) {
val result = if (connected) ReturnResultToWooPos.Success else ReturnResultToWooPos.Failure
triggerEvent(result)
}
}

fun onCardReaderPaymentCompleted() {
Expand Down

0 comments on commit 8488745

Please sign in to comment.