No description provided.
Remove unused variables #9532
pull practicalswift wants to merge 2 commits into bitcoin:master from practicalswift:remove-unused-variables changing 8 files +2 −11-
practicalswift commented at 5:38 PM on January 12, 2017: contributor
- practicalswift force-pushed on Jan 12, 2017
- practicalswift force-pushed on Jan 12, 2017
- fanquake added the label Refactoring on Jan 12, 2017
- fanquake renamed this:
[trivial] Remove unused variables
Remove unused variables
on Jan 12, 2017 -
fanquake commented at 10:10 PM on January 12, 2017: member
Can you please rename the commits to remove the [trivial], as that tag is really only used when a PR doesn't touch any code.
-
jtimon commented at 11:17 PM on January 12, 2017: contributor
I have used "Trivial: " in the beginning of the message of some commits that changed code in trivial ways, I didn't know that policy. When I don't touch code at all I tend to just use "Doc: ", but I did these things on my own, if we have a place describing these kind of best practices I missed it, can you link to it?
-
jtimon commented at 1:34 AM on January 13, 2017: contributor
ACK 180df23
-
in src/addrman.cpp:None in 180df23e20 outdated
53 | @@ -54,11 +54,8 @@ double CAddrInfo::GetChance(int64_t nNow) const 54 | { 55 | double fChance = 1.0; 56 | 57 | - int64_t nSinceLastSeen = nNow - nTime; 58 | int64_t nSinceLastTry = nNow - nLastTry;
robmcl4 commented at 3:59 AM on January 13, 2017:Maybe initializing
nSinceLastTryand the followingifstatement can be collapsed into a call tostd::max().
practicalswift commented at 9:27 AM on January 13, 2017:Good idea! I'll take that in another PR!
practicalswift commented at 3:25 PM on January 18, 2017:dcousens approvedpaveljanik commented at 9:21 AM on January 13, 2017: contributorRemove unused Python variables ac4a095306Remove unused int64_t nSinceLastSeen 90fd29bd0dpracticalswift force-pushed on Jan 13, 2017practicalswift commented at 5:57 PM on January 13, 2017: contributor@fanquake Removed
[trivial]from the commit titles as requested :-)instagibbs commented at 2:18 PM on January 14, 2017: memberpracticalswift commented at 4:53 PM on January 29, 2017: contributorI believe this one should be ready to merge. Please let me know if any adjustments are needed and I'll fix it right away! :-)
jtimon commented at 10:23 PM on February 2, 2017: contributorutACK 90fd29b
practicalswift commented at 10:23 PM on February 2, 2017: contributorAny sponsor who has time to take a look at this hopefully trivial PR? :-)
MarcoFalke commented at 12:10 AM on February 3, 2017: memberutACK 90fd29bd0dcbaf5d5c4ef9e69824297c35f0b88e
laanwj merged this on Feb 7, 2017laanwj closed this on Feb 7, 2017laanwj referenced this in commit b709fe7ffc on Feb 7, 2017codablock referenced this in commit 027fbcdb0b on Jan 19, 2018codablock referenced this in commit 767f5e436b on Jan 23, 2018andvgal referenced this in commit 8a1c7eae79 on Jan 6, 2019CryptoCentric referenced this in commit da224e566e on Feb 27, 2019practicalswift deleted the branch on Apr 10, 2021DrahtBot locked this on Aug 16, 2022
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-15 15:15 UTC
More mirrored repositories can be found on mirror.b10c.me