Remove unused, non-working RPC PostCommand signal #9575
pull practicalswift wants to merge 1 commits into bitcoin:master from practicalswift:never-executed-comment changing 1 files +0 −8-
practicalswift commented at 4:51 pm on January 18, 2017: contributor
-
TheBlueMatt commented at 1:57 am on January 19, 2017: memberI’d vote we just remove the dead code.
-
fanquake commented at 2:34 am on January 19, 2017: member
0I'd vote we just remove the dead code.
Agree.
-
JeremyRubin commented at 4:32 am on January 19, 2017: contributor
NACK. Code seems to be reachable?
JSONRPCError doesn’t inherit from std::exception. transformNamedArguments could throw a JSONRPCError.
-
TheBlueMatt commented at 4:55 am on January 19, 2017: member
Either way, code is clearly a NOP.
On January 18, 2017 11:32:42 PM EST, Jeremy Rubin notifications@github.com wrote:
NACK. Code seems to be reachable?
JSONRPCError doesn’t inherit from std::exception. transformNamedArguments could throw a JSONRPCError.
– You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/bitcoin/bitcoin/pull/9575#issuecomment-273679792
-
laanwj commented at 6:09 am on January 19, 2017: member
This clearly seems a bug. There’s two options here:
- repair the PostCommand functionality so that the PostCommand handler actually runs (by having a RAII cleanup that triggers it)
- remove the PostCommand functionality
It looks like this currently influences nothing as no PostCommand handlers are being registered.
-
practicalswift force-pushed on Feb 28, 2017
-
practicalswift commented at 3:42 pm on February 28, 2017: contributor@laanwj Updated and pushed. I simply removed the PostCommand functionality as suggested. Let me know if you have any further suggestions! :-)
-
practicalswift renamed this:
[trivial] Add comment about unreachable code
Remove unreachable code
on Feb 28, 2017 -
laanwj commented at 7:28 am on March 9, 2017: member@practicalswift You should more thoroughly remove it then. Also remove the signal. Otherwise people will register it in the expectation it will be called.
-
Remove unreachable code (g_rpcSignals.PostCommand) 54fae05dad
-
practicalswift force-pushed on Mar 9, 2017
-
practicalswift commented at 8:48 am on March 9, 2017: contributor@laanwj Another try - looks good? :-)
-
laanwj commented at 8:50 am on March 9, 2017: memberYes, all the traces of it should be gone. Looks good to me now. (also renamed the pull to more clearly summarize what it does)
-
laanwj renamed this:
Remove unreachable code
Remove unused, non-working RPC PostCommand signal
on Mar 9, 2017 -
laanwj merged this on Mar 9, 2017
-
laanwj closed this on Mar 9, 2017
-
laanwj referenced this in commit 6805c4112c on Mar 9, 2017
-
PastaPastaPasta referenced this in commit 40b53015ea on Jan 2, 2019
-
PastaPastaPasta referenced this in commit a43bd9a611 on Jan 2, 2019
-
PastaPastaPasta referenced this in commit a5d406ff27 on Jan 2, 2019
-
PastaPastaPasta referenced this in commit 297d1037a6 on Jan 3, 2019
-
PastaPastaPasta referenced this in commit 329ab599f7 on Jan 21, 2019
-
PastaPastaPasta referenced this in commit 4658e17409 on Jan 27, 2019
-
PastaPastaPasta referenced this in commit f7f589161c on Jan 29, 2019
-
PastaPastaPasta referenced this in commit 77757b6c3e on Feb 5, 2019
-
PastaPastaPasta referenced this in commit 77119e97d4 on Feb 5, 2019
-
PastaPastaPasta referenced this in commit 1bfc069e34 on Feb 5, 2019
-
Fuzzbawls referenced this in commit 71ed429370 on Feb 14, 2021
-
practicalswift deleted the branch on Apr 10, 2021
-
DrahtBot locked this on Aug 16, 2022
github-metadata-mirror
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: 2024-12-22 00:12 UTC
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: 2024-12-22 00:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me