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 def #205

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Remove unused def #205

merged 1 commit into from
Nov 26, 2024

Conversation

sogaiu
Copy link
Contributor

@sogaiu sogaiu commented Nov 26, 2024

Currently, the following exists in netrepl.janet:

(def f (go-nursery nurse flusher))

It looks like it may be safe to replace it with:

(go-nursery nurse flusher)

as there are no other relevant references to f.

This PR is a suggestion to make that replacement.


It appears (def f ...) was needed at some point before, but when this change was made (may need to scroll up depending on browser settings), the code:

(edefer (ev/cancel f "form evaluated")

was replaced with:

(edefer (set keep-flushing false)

It seems that the last bit of code that needed to refer to f was removed in that change.

@bakpakin bakpakin merged commit 7fd743a into janet-lang:master Nov 26, 2024
13 checks passed
@bakpakin
Copy link
Member

Thanks @sogaiu . I think this PR as well as a few others indicate we should have some linting for unused bindings, especially local bindings.

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