Skip to content

refactor: Delete dead code in driver.rs#1664

Merged
randomPoison merged 3 commits intomasterfrom
legare/driver-rs-dead-code
Mar 18, 2026
Merged

refactor: Delete dead code in driver.rs#1664
randomPoison merged 3 commits intomasterfrom
legare/driver-rs-dead-code

Conversation

@randomPoison
Copy link
Contributor

build_session and build_session_from_args became dead code in 65d1abae9 back in 2019. Likewise, the commented out code has been sitting there since the same commit, so I think we're fine to delete all of this.

This comment was marked as resolved.

Copy link
Contributor

@kkysen kkysen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM although maybe @ahomescu should still take a quick look. Also, could you squash the formatting commit so that they all remain green and bisectsble?

@randomPoison
Copy link
Contributor Author

Also, could you squash the formatting commit so that they all remain green and bisectsble?

I always squash and merge, so when it lands on master it'll only be a single commit.

}
}

// /// Various driver bits that we have lying around at the end of `phase_1_parse_input`. This is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh you're deleting this code. I'm not sure why it was here in the first place, or later commented out. Did you check the git history?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It got commented out in the same toolchain roll that made the other stuff unused, I think it was replaced by rustc internals but I didn't dig into it too deeply since the code has been dead for years.

@randomPoison randomPoison merged commit 594f7b4 into master Mar 18, 2026
11 checks passed
@randomPoison randomPoison deleted the legare/driver-rs-dead-code branch March 18, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants