refactor(shared): remove unused functions from settings.ts #135

Merged
jonas.hanisch merged 1 commit from refactor/128-cleanup-settings-ts into main 2026-01-24 12:07:27 +00:00
Owner

Summary

  • Removed 6 unused functions/methods from settings.ts
  • Reduced file by 52 lines

Removed Functions

Function Type Reason
getDefault() SettingsManager method Never called
reload() SettingsManager method Never called
resetSettings() Standalone Testing helper, never used
createSettingsManager() Standalone Factory function, never used
generateAuthToken() Standalone Only used by ensureWorkerAuthToken
ensureWorkerAuthToken() Standalone Never called

Kept Functions (actively used)

  • getSettings() - singleton accessor
  • loadSettings() - convenience function
  • saveSettings() - persistence function

Note

These functions can be re-added if needed in the future. The auth token functionality might be useful for secure worker communication, but it's not currently implemented.

Test plan

  • TypeScript compilation passes
  • Settings loading/saving still works

Closes #128

🤖 Generated with Claude Code

## Summary - Removed 6 unused functions/methods from `settings.ts` - Reduced file by 52 lines ## Removed Functions | Function | Type | Reason | |----------|------|--------| | `getDefault()` | SettingsManager method | Never called | | `reload()` | SettingsManager method | Never called | | `resetSettings()` | Standalone | Testing helper, never used | | `createSettingsManager()` | Standalone | Factory function, never used | | `generateAuthToken()` | Standalone | Only used by ensureWorkerAuthToken | | `ensureWorkerAuthToken()` | Standalone | Never called | ## Kept Functions (actively used) - `getSettings()` - singleton accessor - `loadSettings()` - convenience function - `saveSettings()` - persistence function ## Note These functions can be re-added if needed in the future. The auth token functionality might be useful for secure worker communication, but it's not currently implemented. ## Test plan - [x] TypeScript compilation passes - [ ] Settings loading/saving still works Closes #128 🤖 Generated with [Claude Code](https://claude.com/claude-code)
refactor(shared): remove unused functions from settings.ts
All checks were successful
CI / check (pull_request) Successful in 0s
CI / build (pull_request) Successful in 42s
CI / validate-plugin (pull_request) Successful in 35s
cc7edef21f
Removed 6 unused functions/methods:

SettingsManager methods:
- getDefault() - never called
- reload() - never called

Standalone functions:
- resetSettings() - testing helper, never used
- createSettingsManager() - factory function, never used
- generateAuthToken() - only used by ensureWorkerAuthToken
- ensureWorkerAuthToken() - never called

These can be re-added when needed. Keeping the codebase clean.

Fixes #128

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
jonas.hanisch force-pushed refactor/128-cleanup-settings-ts from cc7edef21f
All checks were successful
CI / check (pull_request) Successful in 0s
CI / build (pull_request) Successful in 42s
CI / validate-plugin (pull_request) Successful in 35s
to 1efdf33b6b
All checks were successful
CI / check (pull_request) Successful in 1s
CI / build (pull_request) Successful in 1m25s
CI / validate-plugin (pull_request) Successful in 1m5s
2026-01-24 10:40:14 +00:00
Compare
jonas.hanisch force-pushed refactor/128-cleanup-settings-ts from 1efdf33b6b
All checks were successful
CI / check (pull_request) Successful in 1s
CI / build (pull_request) Successful in 1m25s
CI / validate-plugin (pull_request) Successful in 1m5s
to b19b0b3513
All checks were successful
CI / build (pull_request) Successful in 42s
2026-01-24 12:06:12 +00:00
Compare
jonas.hanisch deleted branch refactor/128-cleanup-settings-ts 2026-01-24 12:07:27 +00:00
Sign in to join this conversation.
No description provided.