mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-27 11:02:33 +01:00
d5615304a1
## Summary Removes two unreachable modules, unused code, and redundant checks. No behavior changes. - Removes `project::connection_manager`. Its only caller, `maintain_project_connection`, was removed in #36967, and collab no longer handles `RejoinRemoteProjects`. All the module still did was install a global that nothing read. - Removes `task::static_source`, which nothing used, along with `task`'s `futures` and `parking_lot` dependencies. - Removes unused methods on `Project`, the git store and the debugger stores, and unused items in `dap`, `lsp` and `fs`. One of them, `Session::breakpoints_enabled`, returned `ignore_breakpoints`. - `FakeFs::set_create_worktree_error` was the only way to set `simulated_create_worktree_error`. Removes both, along with the check. - `language_server_download_dir` no longer calls the blocking `Path::exists` before `create_dir_all`. - Smaller redundancies: - `set_diff_base` already ignores an unchanged setting, so the caller's comparison is gone. - `Vec::retain` needs no emptiness check. - A `bool` is assigned without comparing it first. - A few clones, `.peekable()` calls and rebuilt structs changed nothing. ## Testing - `./script/clippy` - `cargo test -p project -p task -p dap -p lsp -p fs -p worktree` ## Self-review - [x] I've reviewed my diff for quality, security, reliability, and performance. - [x] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [x] Tests cover the new or changed behavior. Release Notes: - N/A