From c6be144c4b774a03a8bcab5a165768cf81e9b06b Mon Sep 17 00:00:00 2001 From: stickies-v Date: Sun, 4 Feb 2024 05:08:26 +0000 Subject: Remove timedata With the introduction and usage of TimeOffsets, there is no more need for this file. Remove it. --- src/Makefile.am | 2 - src/Makefile.test.include | 2 - src/addrman_impl.h | 1 - src/init.cpp | 2 - src/net_processing.cpp | 4 +- src/test/denialofservice_tests.cpp | 2 - src/test/fuzz/timedata.cpp | 31 ---------- src/test/net_tests.cpp | 5 -- src/test/timedata_tests.cpp | 105 --------------------------------- src/timedata.cpp | 116 ------------------------------------- src/timedata.h | 82 -------------------------- 11 files changed, 1 insertion(+), 351 deletions(-) delete mode 100644 src/test/fuzz/timedata.cpp delete mode 100644 src/test/timedata_tests.cpp delete mode 100644 src/timedata.cpp delete mode 100644 src/timedata.h diff --git a/src/Makefile.am b/src/Makefile.am index 383767a5a0..43d487c6dc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -284,7 +284,6 @@ BITCOIN_CORE_H = \ support/lockedpool.h \ sync.h \ threadsafety.h \ - timedata.h \ torcontrol.h \ txdb.h \ txmempool.h \ @@ -464,7 +463,6 @@ libbitcoin_node_a_SOURCES = \ rpc/txoutproof.cpp \ script/sigcache.cpp \ signet.cpp \ - timedata.cpp \ torcontrol.cpp \ txdb.cpp \ txmempool.cpp \ diff --git a/src/Makefile.test.include b/src/Makefile.test.include index fb703a0b8c..c20b531032 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -151,7 +151,6 @@ BITCOIN_TESTS =\ test/streams_tests.cpp \ test/sync_tests.cpp \ test/system_tests.cpp \ - test/timedata_tests.cpp \ test/timeoffsets_tests.cpp \ test/torcontrol_tests.cpp \ test/transaction_tests.cpp \ @@ -382,7 +381,6 @@ test_fuzz_fuzz_SOURCES = \ test/fuzz/string.cpp \ test/fuzz/strprintf.cpp \ test/fuzz/system.cpp \ - test/fuzz/timedata.cpp \ test/fuzz/timeoffsets.cpp \ test/fuzz/torcontrol.cpp \ test/fuzz/transaction.cpp \ diff --git a/src/addrman_impl.h b/src/addrman_impl.h index 867c894d01..dd7f7b318f 100644 --- a/src/addrman_impl.h +++ b/src/addrman_impl.h @@ -11,7 +11,6 @@ #include #include #include -#include #include #include diff --git a/src/init.cpp b/src/init.cpp index 0aa04755cb..bc49a14c6c 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -67,7 +67,6 @@ #include #include