refactor: post Optional<> removal cleanups

This commit is contained in:
fanquake
2021-03-15 11:59:05 +08:00
parent 57e980d13c
commit ebc4ab721b
37 changed files with 53 additions and 39 deletions

View File

@@ -10,6 +10,7 @@
#include <boost/test/unit_test.hpp>
#include <optional>
#include <string>
#include <vector>

View File

@@ -15,7 +15,6 @@
#include <net.h>
#include <netbase.h>
#include <node/utxo_snapshot.h>
#include <optional>
#include <primitives/block.h>
#include <protocol.h>
#include <psbt.h>
@@ -26,6 +25,7 @@
#include <version.h>
#include <exception>
#include <optional>
#include <stdexcept>
#include <stdint.h>
#include <unistd.h>

View File

@@ -7,7 +7,6 @@
#include <net.h>
#include <net_permissions.h>
#include <netaddress.h>
#include <optional>
#include <protocol.h>
#include <random.h>
#include <test/fuzz/FuzzedDataProvider.h>
@@ -17,6 +16,7 @@
#include <test/util/setup_common.h>
#include <cstdint>
#include <optional>
#include <string>
#include <vector>

View File

@@ -10,6 +10,7 @@
#include <cassert>
#include <cstdint>
#include <limits>
#include <optional>
#include <vector>
void initialize_p2p_transport_deserializer()

View File

@@ -5,7 +5,6 @@
#include <test/fuzz/fuzz.h>
#include <node/psbt.h>
#include <optional>
#include <psbt.h>
#include <pubkey.h>
#include <script/script.h>
@@ -13,6 +12,7 @@
#include <version.h>
#include <cstdint>
#include <optional>
#include <string>
#include <vector>

View File

@@ -2,7 +2,6 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <optional>
#include <pubkey.h>
#include <script/descriptor.h>
#include <test/fuzz/FuzzedDataProvider.h>
@@ -10,6 +9,7 @@
#include <test/fuzz/util.h>
#include <cstdint>
#include <optional>
#include <string>
#include <vector>

View File

@@ -9,7 +9,6 @@
#include <cstdint>
#include <net.h>
#include <netbase.h>
#include <optional>
#include <serialize.h>
#include <span.h>
#include <streams.h>
@@ -24,6 +23,7 @@
#include <algorithm>
#include <ios>
#include <memory>
#include <optional>
#include <string>
using namespace std::literals;

View File

@@ -7,7 +7,6 @@
#include <clientversion.h>
#include <hash.h> // For Hash()
#include <key.h> // For CKey
#include <optional>
#include <sync.h>
#include <test/util/logging.h>
#include <test/util/setup_common.h>
@@ -23,6 +22,7 @@
#include <util/vector.h>
#include <array>
#include <optional>
#include <stdint.h>
#include <string.h>
#include <thread>