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

Simplify Dict code #254

Closed
wants to merge 5 commits into
base: master
from

Conversation

Projects
None yet
1 participant
@jvoigtlaender
Contributor

jvoigtlaender commented May 27, 2015

  • removing redundant bindings
  • inlining/simplifying case branches
  • removing two unused, and unexported, functions

jvoigtlaender added some commits May 27, 2015

remove redundant bindings
Note that `l` and `r` already have exactly those values due to the
pattern match of which this is a branch.
inline a trivial case
Note that `l` at that point is `RBNode cl kl vl ll rl`, of which `max`
is simply `(kl, vl)` by the definition.
@jvoigtlaender

This comment has been minimized.

Show comment
Hide comment
@jvoigtlaender

jvoigtlaender May 27, 2015

Contributor

Ah, sorry, the last of these simplification steps were too quick. So I'll revise.

The test suite / Travis went green, though. So test coverage of Dict does not seem to be very deep.

Contributor

jvoigtlaender commented May 27, 2015

Ah, sorry, the last of these simplification steps were too quick. So I'll revise.

The test suite / Travis went green, though. So test coverage of Dict does not seem to be very deep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment