gfx-web-app
gfx-web-app copied to clipboard
Remove unused utility files and update index.ts
Changes Made
This PR removes several unused utility files from the codebase and updates the index.ts file to only export the necessary modules.
Files Removed:
./src/utils/seo.ts./src/utils/perpsNotifications.tsx./src/utils/connectionSub.ts./src/utils/borsh.ts./src/utils/customFetch.ts./src/utils/notifications.tsx./src/utils/requests.ts
Files Updated:
./src/utils/index.ts- Updated to only export the modules that are actually used in the codebase.
Analysis Process:
- Identified all utility functions imported from '@/utils' across the codebase
- Determined which source files contained these functions
- Removed unused utility files
- Updated the index.ts file to only export the necessary modules
This change reduces the codebase size and improves maintainability by removing dead code.
✅ Fixed failing type check in this commit.
The issue was that useTokenAccount.tsx was still importing the notify function from @/utils, but this function was removed from the index exports. I updated the import to directly reference @/utils/notifications instead.