Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused imports #2049

Merged
merged 1 commit into from
Oct 9, 2024
Merged

Conversation

srijan-paul
Copy link
Contributor

@srijan-paul srijan-paul commented Oct 9, 2024

Most of these imports are unnecessary, but not sure what this does:

const S = struct {
    const foo = @compileError("some message");
};

const bar = S.foo;

I've removed it for now, and the tests and the zls binary seem to work fine.

Copy link
Member

@Techatrix Techatrix left a comment

Choose a reason for hiding this comment

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

That code snippet in semantic_tokens.zig looks like something I accidentally added while testing #1764.

@Techatrix Techatrix merged commit 6ae67e8 into zigtools:master Oct 9, 2024
6 checks passed
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.

2 participants