chore: remove legacy pcb-sch position-write helpers - #1252
Open
detail-app[bot] wants to merge 1 commit into
Open
detail-app[bot] wants to merge 1 commit into
detail-app[bot] wants to merge 1 commit into
Conversation
Build Performance
Measured with hyperfine. Times show median ±stddev. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Remove the legacy direct-to-disk position-writing utilities
replace_pcb_sch_comments,remove_positions, and the privatewrite_position_blockhelper frompcb-sch/src/position.rs, along with their three now-orphaned tests. Also drop thetempfiledev-dependency frompcb-sch(only used by the removed tests) and the now-unusedstd::fs::OpenOptions,std::io::{Seek, Write}, andstd::path::Pathimports.These functions had no production callers: their last consumers (the deprecated direct-to-disk fallback in the
pcb/savePositionshandler and thepcb/removePositionrequest handler inpcb-zen/src/lsp/mod.rs) were intentionally removed in commit cc41a2e ("Remove legacy LSP position APIs"). Production now uses the atomicedit_position_comments+ LSPTextEditpath exclusively, which never writes to disk directly.History
Dead Code PRs can be configured here.
Note
Low Risk
Dead-code cleanup with no remaining callers; production position updates still go through
edit_position_commentsand LSP edits.Overview
Removes unused direct-to-disk schematic position utilities from
pcb-sch:replace_pcb_sch_comments,remove_positions, and the privatewrite_position_block, plus related I/O imports.Also deletes three tests that exercised file writes via
tempfile, drops thetempfiledev-dependency frompcb-sch, and updatesCargo.lock. In-memory position editing viaedit_position_comments(and LSPTextEditflows) is unchanged.Reviewed by Cursor Bugbot for commit ef1e493. Bugbot is set up for automated code reviews on this repo. Configure here.