-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Remove div_rem
from core::num::bignum
#146284
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
Conversation
rustbot has assigned @Mark-Simulacrum. Use |
Is there actually any usage of this Maybe we can just delete it?
|
Would it be reasonable to check if other methods were ever used and delete them as well? But, looking at this from the other side, what if someone were to write something in dec2flt or flt2dec and needed div_rem, but there was nothing? |
I'm not particularly worried about someone needing it and needing to write it (or dig it up in git history). I definitely don't want to spend reviewer time reviewing optimizations for dead code though. |
Fair enough, then first question about other unused methods is still open, and I'm fine to delete them as well if found any other |
I don't have any strong opinion on whether to proactively audit for other unused code. It's probably relatively harmless to keep it and just not touch it. |
bddb431
to
a947e5e
Compare
a947e5e
to
a2d66db
Compare
div_rem
algorithm in core::num::bignum
div_rem
from core::num::bignum
Oh, well
Do you mean it's better not to touch this function or any others? If first so feel free to close this one I guess |
No strong opinion either way, changes that are just deleting (dead code) lines I'm generally happy to rubber stamp. They're easy to add back later. @bors r+ rollup |
Rollup of 8 pull requests Successful merges: - #143314 (add reference id to test, and fix filename) - #146284 (Remove `div_rem` from `core::num::bignum`) - #146416 (Tidy dependency checks cleanups + QoL) - #146471 (bootstrap: Show target in "No such target exists" message) - #146478 (Improve `core::fmt` coverage) - #146480 (tests: update new test to accept new lifetime format) - #146488 (Improve `core::ptr` coverage) - #146501 (compiletest: Fix `--exact` test filtering) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #146284 - Kivooeo:blazing-fast-division-bignum, r=Mark-Simulacrum Remove `div_rem` from `core::num::bignum` This fixes very old fixme that sounds like this ``` Stupid slow base-2 long division taken from https://en.wikipedia.org/wiki/Division_algorithm FIXME use a greater base ($ty) for the long division. ``` By deleting this method since it was never used
This fixes very old fixme that sounds like this
By deleting this method since it was never used