Chore: Remove dead code and unnecessary comments#34
Draft
Conversation
- Remove unused reset-password logic from JwtAuthenticationFilter.java - Remove commented-out livenessProbe and readinessProbe from deployment.yaml - Remove noisy inline comments from ChatController.java - Change debug-level logs from log.info to log.debug in ChatWebSocketHandler.java - Remove placeholder comment from ChatService.java Co-authored-by: fred-maina <150168105+fred-maina@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove dead code and unnecessary comments
Chore: Remove dead code and unnecessary comments
Dec 1, 2025
fred-maina
requested changes
Dec 1, 2025
Owner
fred-maina
left a comment
There was a problem hiding this comment.
remove all comments not being used
Remove trailing comments from: - AuthController.java - JWTService.java - UserRepository.java - ChatMessage.java - ChatController.java - ChatWebSocketHandler.java - MessagingService.java - ChatService.java - WebSocketConfig.java - JacksonConfig.java - ChatMessageRepository.java - ChatMessageMapper.java - WebSocketMessagePayload.java - ChatMessageDto.java - ChatSessionDto.java Co-authored-by: fred-maina <150168105+fred-maina@users.noreply.github.com>
Author
Removed all unused comments from 15 files across the codebase in commit 93f8d25. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cleanup of dead code, noisy comments, and incorrect log levels that add confusion for developers.
Changes
JwtAuthenticationFilter.java: Remove unimplemented
reset-passwordaction check—dead security logic that was never wired upk8s/deployment.yaml: Remove commented-out
livenessProbeandreadinessProbesectionsChatWebSocketHandler.java: Downgrade debug-only logs from
log.infotolog.debugAll Java files: Remove all unused trailing comments from 15 files across the codebase:
Fixes Chore: Remove dead code and unnecessary comments #18
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.