diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-09-21 20:18:20 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-09-21 20:18:20 +0100 |
commit | d629a2404592fbf73f8378d1e010fbab9cfe2dbf (patch) | |
tree | 32f2e685c9a94e5871064aaef41fd86a8ef13e9c | |
parent | First commit passing IWYU (diff) | |
download | libdbpp-postgresql-d629a2404592fbf73f8378d1e010fbab9cfe2dbf.tar.bz2 libdbpp-postgresql-d629a2404592fbf73f8378d1e010fbab9cfe2dbf.tar.xz libdbpp-postgresql-d629a2404592fbf73f8378d1e010fbab9cfe2dbf.zip |
Tidy up IWYUlibdbpp-postgresql-1.4.6
-rw-r--r-- | libpqpp/pq-column.cpp | 7 | ||||
-rw-r--r-- | libpqpp/pq-command.cpp | 2 | ||||
-rw-r--r-- | libpqpp/pq-command.h | 6 | ||||
-rw-r--r-- | 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 <boost/date_time/gregorian/parsers.hpp> -#include <boost/date_time/posix_time/posix_time_config.hpp> -#include <boost/date_time/posix_time/posix_time_types.hpp> -#include <boost/date_time/posix_time/ptime.hpp> -#include <boost/date_time/posix_time/time_parsers.hpp> +#include <boost/date_time/gregorian_calendar.hpp> +#include <boost/date_time/posix_time/posix_time.hpp> #include <cmath> #include <cstdio> #include <cstdlib> 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 <algorithm> -#include <boost/date_time/posix_time/time_formatters.hpp> #include <compileTimeFormatter.h> #include <dbTypes.h> #include <factory.h> -#include <map> #include <optional> 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 <glibmm/ustring.h> #pragma GCC diagnostic pop #include "command_fwd.h" -#include <boost/date_time/posix_time/posix_time_types.hpp> -#include <boost/date_time/posix_time/ptime.hpp> +#include <boost/date_time/posix_time/posix_time.hpp> #include <cstddef> #include <iosfwd> #include <string> @@ -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 <array> -#include <boost/date_time/gregorian/greg_date.hpp> -#include <boost/date_time/posix_time/conversion.hpp> -#include <boost/date_time/posix_time/posix_time.hpp> // IWYU pragma: keep -#include <boost/date_time/posix_time/posix_time_types.hpp> -#include <boost/date_time/posix_time/ptime.hpp> +#include <boost/date_time/gregorian_calendar.hpp> +#include <boost/date_time/posix_time/posix_time.hpp> #include <boost/date_time/time.hpp> -#include <boost/date_time/time_system_counted.hpp> #include <column.h> #include <cstdint> #include <cstdio> @@ -41,13 +37,8 @@ namespace DB { class ColumnTypeNotSupported; -} -namespace DB { class Error; } -namespace boost::posix_time { - class time_duration; -} class StandardMockDatabase : public DB::PluginMock<PQ::Mock> { public: |