Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

chore: delete dead files (unreferenced public/tutorials assets and scripts)#1994

Merged
sbvegan merged 2 commits intomintlifyfrom
chore/cleanup-dead-files
Mar 5, 2026
Merged

chore: delete dead files (unreferenced public/tutorials assets and scripts)#1994
sbvegan merged 2 commits intomintlifyfrom
chore/cleanup-dead-files

Conversation

@sbvegan
Copy link
Copy Markdown
Collaborator

@sbvegan sbvegan commented Mar 5, 2026

Summary

Removes 25 files confirmed to have zero references across all content in the repo. Verified by grepping every MDX, MD, JSON, TS, TSX, JS, and CSS file for filename references (with and without the public/ prefix).

scripts/ (1 file)

  • generate-sdk-components.ts — never invoked; package.json only calls generate-actions-components.ts in the prebuild script. Orphaned from a previous codegen approach.

public/tutorials/ (21 files)
Tutorials were rewritten to inline Viem code directly. The backing .js, .sol, .mjs, and .sh files are no longer linked or imported from any MDX page:

  • sdk-stack.js — used deprecated @eth-optimism/sdk; superseded by viem-based tutorials
  • cross-dom-bridge-erc20.js, cross-dom-bridge-eth.js, cross-dom-solidity.js
  • cross-dom-solidity.sol, standard-bridge-custom-token.sol
  • standard-bridge-standard-token.sh
  • send-tx-from-eth.js, sdk-estimate-costs.js, sdk-trace-txns.js
  • setup-for-erc20-upgrade.sh, setup-for-manual-relay.sh
  • CustomBridge.sol, InteropToken.sol, LockboxDeployer.s.sol, LockboxSuperchainERC20.sol, Verifier.sol, first-contract.sol
  • attest.mjs, onchain-verification.mjs, verify-attestation.mjs

public/img/builders/chain-operators/ (3 drawio files)

  • ingress-traffic-diagram.drawio, replica-node.drawio, sequencer-node.drawio — no references in any content file

Test plan

  • Full grep of all text content confirms zero references for each deleted file
  • Referenced public/ files (fonts, images, logos, remaining tutorial assets) are untouched
  • No MDX pages were modified

🤖 Generated with Claude Code

…cripts

Remove 25 files confirmed to have zero references across all MDX, JSON,
TS, and CSS content in the repo:

**scripts/**
- generate-sdk-components.ts: never called; package.json only invokes
  generate-actions-components.ts in the prebuild script

**public/tutorials/ (21 files):**
Tutorials were rewritten to inline Viem code. The corresponding backing
files (.js, .sol, .mjs, .sh) are no longer imported or linked from any
MDX page:
- sdk-stack.js (used deprecated @eth-optimism/sdk)
- cross-dom-bridge-erc20.js, cross-dom-bridge-eth.js, cross-dom-solidity.js
- cross-dom-solidity.sol, standard-bridge-custom-token.sol
- standard-bridge-standard-token.sh
- send-tx-from-eth.js, sdk-estimate-costs.js, sdk-trace-txns.js
- setup-for-erc20-upgrade.sh, setup-for-manual-relay.sh
- CustomBridge.sol, InteropToken.sol, LockboxDeployer.s.sol
- LockboxSuperchainERC20.sol, Verifier.sol, first-contract.sol
- attest.mjs, onchain-verification.mjs, verify-attestation.mjs

**public/img/builders/chain-operators/ (3 drawio files):**
- ingress-traffic-diagram.drawio, replica-node.drawio, sequencer-node.drawio
  have no references in any content file

Verified via full grep of all MDX, MD, JSON, TS, TSX, JS, and CSS files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Re-evaluating against proper criteria:

**Drawio files restored (3):**
These are diagram source files. Even without corresponding exported
images in the repo, they represent editorial work product and should
be preserved.

**Contract source files restored (4):**
CustomBridge.sol, InteropToken.sol, LockboxDeployer.s.sol,
LockboxSuperchainERC20.sol are source files for contracts discussed
in live tutorials and guides. Unlike the JS files (which were fully
inlined into MDX), these contracts are the canonical reference
implementation. Tutorials link to or discuss them without inlining
the full source.

**Still deleted (17 files) — confirmed orphans or fully inlined:**
- sdk-stack.js: used deprecated @eth-optimism/sdk, no live page
- JS tutorial files (cross-dom, sdk-*, send-tx-from-eth): code fully
  inlined into MDX rewrites, .js files are redundant copies
- Shell scripts (setup-for-erc20-upgrade.sh, setup-for-manual-relay.sh,
  standard-bridge-standard-token.sh): commands inlined in MDX
- EAS attestation files (attest.mjs, onchain-verification.mjs,
  verify-attestation.mjs): orphans with no live tutorial page
- first-contract.sol, Verifier.sol, cross-dom-solidity.*: orphans
  with no live page linking to them
- generate-sdk-components.ts: never called by any build script

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sbvegan sbvegan merged commit d9c23ae into mintlify Mar 5, 2026
7 checks passed
@sbvegan sbvegan deleted the chore/cleanup-dead-files branch March 5, 2026 00:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant