Skip to content

Conversation

@prycey
Copy link

@prycey prycey commented Jun 5, 2025

Description

This PR removes deprecated API usage and cleans up unused variables in the codebase.

Changes Made

  • Remove deprecated navigator.platform API usage
  • Remove unused variables: browserLanguage, platform, timeZoneOffset
  • Clean up dead code in taxReturnCreate.ts and PreviewTaxReturns.tsx

Why This Change?

These variables were declared but never used in the request bodies, creating unnecessary code clutter. The navigator.platform API is also deprecated according to MDN documentation.

Impact

  • ✅ Improves code maintainability
  • ✅ Eliminates deprecation warnings
  • ✅ Reduces bundle size (marginally)
  • ✅ No functional changes - only removes unused code

Testing

Since these variables were never used, removing them has no functional impact. The TypeScript compiler should validate that no references to these variables remain.

sps-irs and others added 2 commits May 29, 2025 13:12
- Remove deprecated navigator.platform API usage

- Remove unused variables: browserLanguage, platform, timeZoneOffset

- Clean up dead code in taxReturnCreate.ts and PreviewTaxReturns.tsx

These variables were declared but never used in the request bodies, creating unnecessary code clutter. The navigator.platform API is also deprecated according to MDN documentation.

This change improves code maintainability and eliminates deprecation warnings without affecting functionality.
@tredondo
Copy link

tredondo commented Jun 5, 2025

Was this AI-generated?

Copy link

@GreenRoadBen GreenRoadBen left a comment

Choose a reason for hiding this comment

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

The files being changed do not correspond to the intent as described in the PR initial comment.
Best course of action is to make a new branch from current main and make the changes anew.

@tredondo in #9 (comment)
May be correct.

@mmazanec22
Copy link

@tredondo @GreenRoadBen looks like the deceptively large file diff that now shows was caused by the force push to main from the maintainer after this PR was opened. If you look at the commits, you can see the PR author's changes do appear to match their description. Dropping the initial commit and rebasing the other one should address this discrepancy without necessitating a separate branch or new PR.

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.

6 participants