From d629a2404592fbf73f8378d1e010fbab9cfe2dbf Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 21 Sep 2021 20:18:20 +0100 Subject: Tidy up IWYU --- libpqpp/pq-column.cpp | 7 ++----- libpqpp/pq-command.cpp | 2 -- libpqpp/pq-command.h | 6 +----- libpqpp/unittests/testpq.cpp | 13 ++----------- 4 files changed, 5 insertions(+), 23 deletions(-) diff --git a/libpqpp/pq-column.cpp b/libpqpp/pq-column.cpp index d3f9b11..446fe38 100644 --- a/libpqpp/pq-column.cpp +++ b/libpqpp/pq-column.cpp @@ -2,11 +2,8 @@ #include "column.h" #include "dbTypes.h" #include "pq-selectbase.h" -#include -#include -#include -#include -#include +#include +#include #include #include #include diff --git a/libpqpp/pq-command.cpp b/libpqpp/pq-command.cpp index 37de3b0..8a79364 100644 --- a/libpqpp/pq-command.cpp +++ b/libpqpp/pq-command.cpp @@ -1,10 +1,8 @@ #include "pq-command.h" #include -#include #include #include #include -#include #include namespace Glib { diff --git a/libpqpp/pq-command.h b/libpqpp/pq-command.h index 7e8cd94..d187645 100644 --- a/libpqpp/pq-command.h +++ b/libpqpp/pq-command.h @@ -15,8 +15,7 @@ #include #pragma GCC diagnostic pop #include "command_fwd.h" -#include -#include +#include #include #include #include @@ -25,9 +24,6 @@ namespace DB { class Blob; } -namespace boost::posix_time { - class time_duration; -} namespace PQ { class DLL_PUBLIC CommandOptions : public DB::CommandOptions { diff --git a/libpqpp/unittests/testpq.cpp b/libpqpp/unittests/testpq.cpp index ba7fb6b..1285d9a 100644 --- a/libpqpp/unittests/testpq.cpp +++ b/libpqpp/unittests/testpq.cpp @@ -6,13 +6,9 @@ #include "dbTypes.h" #include "mockDatabase.h" #include -#include -#include -#include // IWYU pragma: keep -#include -#include +#include +#include #include -#include #include #include #include @@ -41,13 +37,8 @@ namespace DB { class ColumnTypeNotSupported; -} -namespace DB { class Error; } -namespace boost::posix_time { - class time_duration; -} class StandardMockDatabase : public DB::PluginMock { public: -- cgit v1.2.3