Skip to content

Remove dead code, unused files and outdated build docs (#335) - #347

Merged
Martin-1997 merged 3 commits into
masterfrom
chore/335-cleanup
Nov 19, 2026
Merged

Martin-1997 merged 3 commits into
masterfrom
chore/335-cleanup

Conversation

@Martin-1997

Copy link
Copy Markdown
Collaborator

Fixes #335. No behaviour change.

Removed

What Why
route page#do_echo (POST /echo) the method doesn't exist; calling it ended in an error
route ajax#index + empty AjaxController::index() did nothing
img/void.png, img/tiny-loader.gif referenced nowhere (leftovers of the jQuery interface)
templates/settings/index.php settings template of the old interface; no settings page is registered
AjaxController::isUserAdmin(), TimelineMapper::findByStatus(), UserToClientMapper::findAllForUser(), UserToProjectMapper::findAllForUser() no callers in lib/ or tests/
commented-out var_dump, echo, //$this->endTimer() debug leftovers

Makefile

Rewritten with only the targets in use, keeping the original licence header:

  • make / make build: frontend into js/dist;
  • make appstore: unchanged;
  • make test: unit tests;
  • make test-integration: now uses the server's PHPUnit (../../vendor-bin/phpunit), as CI does. Before it used the app's PHPUnit 10, which doesn't fit the server's test classes, and its comment said CI doesn't run integration tests;
  • make clean.

Removed: gmake/gtar, downloading Composer and PHPUnit from the web, the source/dist/distclean targets, and php-8.2 as a hard-coded PHP binary.

README

  • Gone: "Place this app in nextcloud/apps/" and the build section about bower and gulp, which the app doesn't use.
  • New: short sections on the development setup (npm ci && npm run build, occ app:enable) and on the tests (unit, integration, phpstan, lint, plus what CI runs).
  • New note: a git checkout gets no App Store updates (Nextcloud skips app directories with .git).

The spot where #326 adds its "Features and clients" section is untouched, so both merge without conflict.

Testing

🤖 Generated with Claude Code

Martin-1997 and others added 3 commits November 18, 2026 22:19
- routes: page#do_echo (no such method) and ajax#index (empty method)
- files: img/void.png, img/tiny-loader.gif,
  templates/settings/index.php (old interface, unused)
- methods: AjaxController::index/isUserAdmin,
  TimelineMapper::findByStatus, UserToClientMapper::findAllForUser,
  UserToProjectMapper::findAllForUser
- commented-out debug code
- Makefile: only the targets in use (build, appstore, test,
  test-integration with the server's PHPUnit as in CI, clean); no
  gmake/gtar, no downloading of Composer and PHPUnit
- README: current development setup and tests instead of bower/gulp

No behaviour change.

Fixes #335

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The previous commit removed findByStatus() and the two findAllForUser()
methods but left their doc comments behind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Build the frontend in a subshell so the working directory doesn't
change, mention make as the alternative, and run occ from the
Nextcloud root as the web server user (with a Docker/AIO example).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Martin-1997
Martin-1997 merged commit 9d6c8c4 into master Nov 19, 2026
20 checks passed
@Martin-1997 Martin-1997 mentioned this pull request Nov 19, 2026
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.

Remove dead code, unused files and outdated build docs

1 participant