ipfs-webui
ipfs-webui copied to clipboard
refactor: remove unused exports identified by ts-unused-exports
This PR removes unused exports that were identified by the ts-unused-exports tool. Removing these unused exports helps in code cleanup, reduces bundle size, and improves maintainability by removing code that isn't being used elsewhere in the project. #2036
Changes:
- Removed unused exports from
/src/bundles/files/protocol.ts(kept only re-exports ofPerform,Spawn) - Removed unused export
realMfsPathfrom/src/bundles/files/actions.js - Removed unused exports (
cliCmdKeys,cliCmdPrefixes,cliCommandList) from/src/bundles/files/consts.js - Removed unused exports (
ACTIONS,sorts,default) from/src/bundles/files/index.js - Removed unused default exports from multiple bundle files
- Removed unused export
checkValidAPIAddressfrom/src/bundles/ipfs-provider.js(kept default export) - Removed unused export
sortByPropertyfrom/src/lib/sort.js - Removed unused exports (
normalizeFiles,makeCIDFromFiles,humanSize) from/src/lib/files.js - Removed unused exports (
after,once,debounce) from/src/lib/hofs/functions.js
All functions are retained for internal use but are no longer exported.