ipfs-webui icon indicating copy to clipboard operation
ipfs-webui copied to clipboard

refactor: remove unused exports identified by ts-unused-exports

Open Crosstons opened this issue 7 months ago • 2 comments

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 of Perform, Spawn)
  • Removed unused export realMfsPath from /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 checkValidAPIAddress from /src/bundles/ipfs-provider.js (kept default export)
  • Removed unused export sortByProperty from /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.

Crosstons avatar Mar 20 '25 10:03 Crosstons