Skip to content

Conversation

@AntonioVentilii
Copy link
Collaborator

Motivation

Method destroyCallback is not used anywhere anymore in the instances of AppWorker. So we can remove it.

@AntonioVentilii AntonioVentilii marked this pull request as ready for review November 18, 2025 10:08
@AntonioVentilii AntonioVentilii requested a review from a team as a code owner November 18, 2025 10:08
Copilot AI review requested due to automatic review settings November 18, 2025 10:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the unused destroyCallback method from the AppWorker class, cleaning up dead code. The method was a no-op by default and was never overridden by any of the 11+ subclasses of AppWorker in the codebase.

Key Changes

  • Removed the destroyCallback method definition from AppWorker class
  • Removed the call to destroyCallback() from the destroy() method
  • Cleaned up related test code including the test spy

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/frontend/src/lib/services/_worker.services.ts Removed unused destroyCallback method definition and its invocation in the destroy() method
src/frontend/src/tests/lib/services/worker.services.spec.ts Removed test spy and override for the now-deleted destroyCallback method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AntonioVentilii AntonioVentilii added this pull request to the merge queue Nov 18, 2025
Merged via the queue into main with commit 42f3ed4 Nov 18, 2025
85 checks passed
@AntonioVentilii AntonioVentilii deleted the chore-frontend/Remove-unused-destroyCallback-method-from-class-AppWorker branch November 18, 2025 16:09
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.

2 participants