MarcoFalke
b7e63306e8
Merge bitcoin/bitcoin#23687 : Remove unused (and broken) functionality in SpanReader
...
31ba1af74a0aaec690a01ea061264a6d5039d885 Remove unused (and broken) functionality in SpanReader (Pieter Wuille)
Pull request description:
This removes the ability to set an offset in the `SpanReader::SpanReader` constructor, as the current code is broken since #23653 . All call sites use `pos=0`, so it is actually unused. If future call sites need it, `SpanReader{a, b, c, d}` is equivalent to `SpanReader{a, b, c.subspan(d)}`.
It also removes the ability to deserialize from `SpanReader` directly from the constructor. This too is unused, and can be more idiomatically simulated using `(SpanReader{a, b, c} >> x >> y >> z)` instead of `SpanReader{a, b, c, x, y, z}`.
This was pointed out by achow101 in https://github.com/bitcoin/bitcoin/pull/23653#discussion_r763370432 .
ACKs for top commit:
jb55:
crACK 31ba1af74a0aaec690a01ea061264a6d5039d885
achow101:
ACK 31ba1af74a0aaec690a01ea061264a6d5039d885
Tree-SHA512: 700ebcd74147628488c39168dbf3a00f8ed41709a26711695f4bf036250a9b115574923bbf96040ec7b7fee4132d6dbbcb5c6e5a2977c4beb521dc1500e6ed53
2021-12-07 09:19:18 +01:00
..
2021-11-25 19:41:53 +01:00
2021-10-05 11:10:37 +02:00
2021-09-10 11:18:58 +08:00
2021-11-16 09:56:45 +01:00
2021-09-29 14:10:29 +02:00
2021-10-20 11:54:03 +05:30
2021-10-12 14:36:51 +13:00
2021-10-26 15:54:52 +01:00
2021-12-01 16:26:11 +01:00
2021-10-05 11:10:47 -04:00
2021-10-05 17:28:02 +02:00
2021-10-21 09:36:07 +08:00
2021-12-07 09:02:06 +01:00
2021-12-03 10:44:37 +01:00
2021-10-22 12:32:16 +02:00
2021-12-03 01:03:30 +02:00
2021-12-06 10:33:12 +01:00
2021-11-29 17:59:44 -05:00
2021-07-14 14:43:45 -07:00
2021-10-20 18:36:40 -04:00
2021-12-06 16:18:14 -05:00
2021-10-11 20:45:56 +08:00
2021-11-25 19:41:53 +01:00
2021-12-07 09:19:18 +01:00
2021-11-16 09:56:45 +01:00
2021-11-12 11:46:34 +01:00
2021-09-07 09:11:10 +02:00
2021-10-05 11:10:47 -04:00
2021-09-28 22:21:10 -04:00
2021-11-10 17:38:45 +01:00
2021-11-10 17:38:45 +01:00
2021-11-09 17:09:50 +00:00
2021-07-30 11:21:51 +02:00
2021-11-16 09:56:45 +01:00
2021-11-29 17:58:53 -05:00
2021-12-06 14:17:41 +13:00
2021-12-06 14:17:41 +13:00
2021-08-17 16:54:47 +08:00
2021-11-11 13:14:01 +01:00
2021-08-17 16:54:47 +08:00
2021-10-12 12:45:55 +02:00
2021-08-17 16:54:47 +08:00
2021-08-17 16:54:47 +08:00
2021-11-01 11:25:42 +08:00
2021-08-17 16:54:47 +08:00
2021-10-01 13:51:10 +00:00
2021-12-06 16:18:14 -05:00
2021-11-26 11:17:43 +01:00
2021-10-20 15:52:08 +02:00
2021-10-14 17:49:52 +05:30
2021-07-09 11:19:36 +02:00
2021-10-25 10:44:17 -04:00
2021-07-30 11:03:44 +02:00
2021-11-03 11:26:57 +02:00
2021-08-16 16:04:47 +08:00
2021-08-16 16:04:47 +08:00
2021-11-28 11:51:21 +05:30
2021-11-29 17:58:53 -05:00
2021-10-05 10:42:34 +02:00
2021-10-11 09:17:28 +02:00
2021-10-05 10:42:34 +02:00
2021-11-29 14:32:51 +01:00
2021-11-15 12:08:49 -05:00
2021-08-02 23:48:32 +10:00
2021-07-01 20:20:52 +02:00
2021-09-30 12:06:27 +13:00
2021-08-24 11:30:09 +02:00
2021-10-05 11:10:47 -04:00
2021-10-22 04:03:45 +03:00
2021-11-15 12:08:49 -05:00
2021-10-05 23:53:33 +02:00
2021-09-02 13:17:46 +08:00
2021-11-16 09:56:45 +01:00
2021-10-04 22:45:43 +02:00
2021-10-05 11:10:47 -04:00
2021-11-16 09:56:45 +01:00
2021-11-30 17:19:49 +01:00
2021-07-12 21:46:59 +08:00
2021-12-06 14:17:41 +13:00
2021-10-12 12:03:14 +13:00
2021-11-12 12:04:20 -05:00
2021-11-12 12:04:20 -05:00
2021-10-11 21:45:49 +10:00
2021-10-11 21:45:49 +10:00
2021-12-03 12:34:01 +13:00
2021-07-08 12:28:23 +02:00
2021-09-24 15:40:04 +08:00
2021-10-15 01:02:45 +00:00
2021-10-21 09:37:30 +08:00
2021-11-08 07:19:10 +02:00
2021-09-16 13:17:01 -05:00
2021-09-15 15:46:48 -04:00
2021-11-25 19:41:53 +01:00
2021-10-11 20:46:25 +08:00
2021-10-01 13:51:10 +00:00
2021-10-05 11:11:18 +02:00
2021-07-15 12:52:38 -07:00
2021-12-03 10:44:37 +01:00
2021-09-28 22:21:10 -04:00
2021-09-03 05:21:58 -04:00
2021-09-03 05:21:58 -04:00
2021-12-03 10:44:37 +01:00
2021-11-30 14:46:16 +01:00
2021-11-29 17:59:44 -05:00
2021-11-29 17:58:53 -05:00
2021-12-06 19:59:35 +01:00
2021-08-04 19:20:32 +08:00
2021-08-04 19:20:32 +08:00
2021-10-22 12:32:16 +02:00
2021-08-23 18:53:34 +02:00
2021-11-29 17:20:20 +01:00
2021-11-29 17:58:53 -05:00
2021-10-05 23:53:33 +02:00
2021-11-29 17:59:44 -05:00
2021-09-24 15:40:04 +08:00
2021-11-16 09:56:45 +01:00
2021-10-19 15:47:53 +02:00
2021-10-01 13:51:10 +00:00
2021-11-16 09:56:45 +01:00
2021-11-16 09:56:45 +01:00
2021-12-06 16:18:14 -05:00
2021-11-29 17:59:44 -05:00
2021-12-06 16:18:14 -05:00
2021-09-29 18:46:30 +02:00
2021-09-06 23:43:51 +02:00
2021-11-16 09:56:45 +01:00
2021-09-27 06:57:20 -04:00
2021-07-05 08:59:38 +03:00
2021-11-18 18:13:21 +01:00
2021-11-16 09:56:45 +01:00
2021-09-27 06:57:20 -04:00
2021-08-20 16:59:41 +02:00
2021-12-02 14:49:19 +00:00
2021-12-02 14:49:19 +00:00
2021-07-20 13:12:42 +01:00
2021-10-22 12:32:16 +02:00
2021-12-03 10:34:07 -05:00
2021-12-03 10:34:07 -05:00
2021-11-16 09:56:45 +01:00