Skip to content

chore: delete unused C++ code#14203

Open
eric-wieser wants to merge 3 commits into
leanprover:masterfrom
eric-wieser:patch-78
Open

chore: delete unused C++ code#14203
eric-wieser wants to merge 3 commits into
leanprover:masterfrom
eric-wieser:patch-78

Conversation

@eric-wieser

@eric-wieser eric-wieser commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Some of these headers are never included, while others are used to define functions which are ultimately never called as their implementation has moved from C++ to Lean.

@eric-wieser eric-wieser changed the title chore: delete output_channel.h chore: delete unused output_channel.h Jun 28, 2026
Comment thread src/util/output_channel.h
class file_output_channel : public output_channel {
std::ofstream m_out;
public:
file_output_channel(char const * fname):m_out(fname) {}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This didn't actually check that m_out was good(). Rather that fixing it, better to delete the unused code!

@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Jun 28, 2026
@mathlib-lean-pr-testing

Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase de5b7f235a71d301bffbb2dbe607ec36dd58cce7 --onto 84b251f7390c20a0a00a221050ab4a6e6c46a191. You can force Mathlib CI using the force-mathlib-ci label. (2026-06-28 18:04:43)

@leanprover-bot

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase de5b7f235a71d301bffbb2dbe607ec36dd58cce7 --onto 84b251f7390c20a0a00a221050ab4a6e6c46a191. You can force reference manual CI using the force-manual-ci label. (2026-06-28 18:04:44)

@eric-wieser eric-wieser changed the title chore: delete unused output_channel.h chore: delete unused C++ headers Jun 28, 2026
@eric-wieser eric-wieser force-pushed the patch-78 branch 2 times, most recently from 8a7b144 to dd4fd0a Compare June 28, 2026 19:24
If the environment has an impredicative Prop, it also assumes heq is defined.
If the environment does not have an impredicative Prop, then it also assumes lift is defined.
*/
declaration mk_no_confusion_type(elab_environment const & env, name const & n);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The declarations in this file are not provided by any cpp file

@eric-wieser eric-wieser changed the title chore: delete unused C++ headers chore: delete unused C++ code Jun 28, 2026
@eric-wieser eric-wieser marked this pull request as ready for review June 28, 2026 20:14
@eric-wieser eric-wieser requested a review from leodemoura as a code owner June 28, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants