---
title: "Discussion on \"The reviewer flagged the helper as dead code, but a string in the config was the only caller\" | Hashnode"
description: "Discussion on \"The reviewer flagged the helper as dead code, but a string in the config was the only caller\". A reviewer flags processRefundLegacy as unused: no direct caller, no test, clean deletion diff. A string key in a dispatch table under a non-default flow reaches it, and removal breaks production. Why static reachability misses registry routing and the checks that prove a function is truly dead."
url: "https://hashnode.com/posts/dead-code-flag-misses-string-keyed-dispatch/6adceab653b55bc9bb9864cb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The reviewer flagged the helper as dead code, but a string in the config was the only caller](https://blogs.powerduck.com/dead-code-flag-misses-string-keyed-dispatch?utm_source=hashnode&utm_medium=feed)

A reviewer flags processRefundLegacy as unused: no direct caller, no test, clean deletion diff. A string key in a dispatch table under a non-default flow reaches it, and removal breaks production. Why static reachability misses registry routing and the checks that prove a function is truly dead.

Oct 24 · 3 min read · blogs.powerduck.com  
Read the article

-   [#aiagents](https://hashnode.com/tag/aiagents)
-   [#codereview](https://hashnode.com/tag/codereview)
-   [#deadcode](https://hashnode.com/tag/deadcode)
-   [#quality](https://hashnode.com/tag/quality)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
