Skip to content

Remove dead code block in TellerWritePlatformServiceJpaImpl - #6204

Open
prajakta128 wants to merge 1 commit into
apache:developfrom
prajakta128:remove-teller-dead-code
Open

Remove dead code block in TellerWritePlatformServiceJpaImpl#6204
prajakta128 wants to merge 1 commit into
apache:developfrom
prajakta128:remove-teller-dead-code

Conversation

@prajakta128

Copy link
Copy Markdown

What

Removes an unreachable/no-op code block inside doTransactionForCashier() in TellerWritePlatformServiceJpaImpl.java.

Why

The block read an entityType parameter from the request and branched on its value ("loan account", "savings account", "client"), but every branch was either empty or entirely commented-out code. entityType was never referenced again anywhere else in the method or the file, so the block had zero effect on runtime behavior. The original author had already flagged it themselves:

// TODO: can we please remove this whole block?!? this is 20 lines of dead code!!!

This PR simply deletes that block. No behavior change.

Why no JIRA ticket

Per CONTRIBUTING.md, a JIRA ticket isn't required for changes that are "truly trivial." This is a straightforward dead-code removal with no functional impact, so I've opened this PR directly.

Checklist

  • No behavior change — verified entityType is unused elsewhere in the file
  • Existing tests pass locally (pending — fixing local JAVA_HOME setup; will confirm once CI runs / once resolved locally)
  • Not a "code dump" — single, focused change

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.

1 participant