-
Notifications
You must be signed in to change notification settings - Fork 35
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 dead code #584
remove dead code #584
Conversation
877ca8f
to
c443e1b
Compare
@@ -40,12 +40,6 @@ module LavinMQ | |||
end | |||
end | |||
|
|||
def each(&) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because forward_missing_to further up? Maybe remove that instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we currently use each_value
for shovels, instead of its own each
why remove forward_missing_to
and exchange each_value
for each
instead of just removing each
?
else raise UnknownHashAlgoritm.new | ||
end | ||
end | ||
|
||
class UnknownHashAlgoritm < Exception; end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then drop this too i guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still used higher up in file
28effe6
to
4f92bdf
Compare
WHAT is this pull request doing?
Removes unreachable and dead code found with
crystal tool unreachable src/lavinmq.cr
Disclaimer: I have done this mainly guided by specs and the crystal tooling. I have also run snowstorm for
image: cloudamqp/lavinmq:pr-584
Might be good to have someone on Linux and Windows to try out locally
HOW can this pull request be tested?
Run crystal spec
Run snowstorm with
image: cloudamqp/lavinmq:pr-584