From f886fb8f2559264578aa636ad6ad3bb7293154d5 Mon Sep 17 00:00:00 2001 From: robbond Date: Tue, 7 Apr 2026 12:27:36 +0100 Subject: [PATCH] Remove unused renderField from elements index --- components/elements/index.js | 10 ---------- memory-bank/change-log.md | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/components/elements/index.js b/components/elements/index.js index 751a9950..8c18a759 100644 --- a/components/elements/index.js +++ b/components/elements/index.js @@ -1575,16 +1575,6 @@ const RenderFileUpload = (field) => { ); }; -const renderField = ({ input, label, type, meta: { touched, error } }) => ( -
- -
- - {touched && error && {error}} -
-
-); - export const FieldArrayForm = (props) => { const { name, diff --git a/memory-bank/change-log.md b/memory-bank/change-log.md index b36ec9f2..8983ed36 100644 --- a/memory-bank/change-log.md +++ b/memory-bank/change-log.md @@ -3395,3 +3395,29 @@ Validation: Follow-ups: - Optional: localize a dedicated `upload-progress-x-of-y` translation key if copy needs stronger grammatical control per locale. + +--- + +### CL-094: 22500 `components/elements/index.js` Phase 2 bounded cleanup (remove dead `renderField`) + +date: 2026-04-07 +author: Cline +scope: `components/elements/index.js` +type: change +rationale: Execute the next smallest low-risk Phase 2 slice by removing the local `renderField` utility after confirming it is unused in the repo. +impact: No behavior change intended; dead code removal only. No auth/security/middleware/API changes. EN/CY and accessibility behavior remain unchanged. +status: completed + +Summary: + +- Confirmed `renderField` had no usages outside its declaration. +- Removed the unused local `renderField` function from `components/elements/index.js`. +- Kept all field component exports, routing, and existing render paths unchanged. + +Validation: + +- `npx eslint components/elements/index.js` -> pass + +Follow-ups: + +- Continue Phase 2 with one bounded no-behavior-change slice, likely next lowest-risk renderer extraction from `components/elements/index.js`.