Skip to content

Conversation

@gbirch-stripe
Copy link
Contributor

Summary

Motivation

Testing

Changelog


// If we are leaving the screen, we should stop (but not close) the scanner
if newWindow == nil {
cardScanningView.stopScanner()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there other situations where we'd want to stop the scanner but another field isn't editing?

@github-actions
Copy link

github-actions bot commented Oct 7, 2025

🚨 New dead code detected in this PR:

IndividualViewController.swift:102 warning: Parameter 'element' is unused
PayWithLinkViewController-UpdatePaymentViewController.swift:232 warning: Parameter 'element' is unused
PayWithLinkViewController-WalletViewController.swift:610 warning: Parameter 'element' is unused
LinkInlineSignupView.swift:342 warning: Parameter 'element' is unused
LinkEmailElement.swift:118 warning: Parameter 'element' is unused
LinkPaymentMethodFormElement.swift:308 warning: Parameter 'element' is unused
LinkSignUpViewController.swift:346 warning: Parameter 'element' is unused
AddressViewController.swift:516 warning: Parameter 'element' is unused
CustomerAddPaymentMethodViewController.swift:417 warning: Parameter 'element' is unused
CardSectionWithScannerView.swift:37 warning: Property 'opensCardScannerAutomatically' is assigned, but never used
PaymentMethodElementWrapper.swift:120 warning: Parameter 'element' is unused
SavedPaymentOptionsViewController.swift:847 warning: Parameter 'element' is unused
AutoCompleteViewController.swift:249 warning: Parameter 'element' is unused
CVCReconfirmationViewController.swift:161 warning: Parameter 'element' is unused
PaymentMethodFormViewController.swift:264 warning: Parameter 'element' is unused
PaymentSheetVerticalViewController.swift:1158 warning: Parameter 'element' is unused
UpdatePaymentMethodViewController.swift:409 warning: Parameter 'element' is unused
ContainerElement.swift:73 warning: Parameter 'element' is unused
Element.swift:75 warning: Parameter 'element' is unused

Please remove the dead code before merging.

If this is intentional, you can bypass this check by adding the label skip dead code check to this PR.

ℹ️ If this comment appears to be left in error, double check that the flagged code is actually used and/or make sure your branch is up-to-date with master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants