Skip to content

refactor: delete the server-side rendering paths nothing reaches - #299

Merged
HugoFara merged 1 commit into
developfrom
refactor/remove-dead-server-render
Aug 30, 2026
Merged

refactor: delete the server-side rendering paths nothing reaches#299
HugoFara merged 1 commit into
developfrom
refactor/remove-dead-server-render

Conversation

@HugoFara

Copy link
Copy Markdown
Owner

Stack 2 of 6. Base: #298. Deletions only — nothing here has a caller.

Three leftovers from before the reading and review screens moved to client-side
rendering. Net -802 lines.

  • TextReadingService (333 lines) echoed the reading pane word span by word
    span. No callers anywhere in src/ or tests/; text_renderer.ts took the
    job over. The only surviving reference was a comment in that file pointing
    back at it, which now describes the underscore attribute contract on its own
    terms.
  • Review/Views/header.php, header_content.php, footer.php are
    reachable only through ReviewController::header(), and routes.php
    registers no route for it (only @index). footer.php has no includer at
    all. Removing the method takes five tests with it — four of which asserted
    nothing beyond assertTrue(true) around an include the test itself expected
    to fail.
  • PageLayoutHelper::renderFramesetHeader() — no callers; the app has no
    framesets left.

To confirm the review views really are unreachable:

grep -n "ReviewController@" src/Shared/Infrastructure/Routing/routes.php

Stack: #2982#3#4#5#6

Three leftovers from before the reading and review screens moved to
client-side rendering:

- TextReadingService (333 lines) echoed the reading pane word span by word
  span. It has no callers; text_renderer.ts took the job over. The only
  surviving mention was a comment in that file pointing back at it, which now
  describes the underscore attribute contract on its own terms.
- Review's header.php, header_content.php and footer.php are reachable only
  through ReviewController::header(), and no route registers it. Removing the
  method takes five tests with it, four of which asserted nothing beyond
  assertTrue(true) around an include that was expected to fail.
- PageLayoutHelper::renderFramesetHeader() has no callers; the app has no
  framesets left.
@HugoFara
HugoFara force-pushed the refactor/remove-dead-server-render branch from 8e2f558 to 6d66cb6 Compare August 30, 2026 22:14
@HugoFara
HugoFara merged commit 27ac193 into develop Aug 30, 2026
14 checks passed
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