Clean up #includes

Remove unused headers, and avoid relying on transitive inclusions

`include-what-you-use` has been very useful for this!
This commit is contained in:
ISSOtm
2024-03-28 01:16:51 +01:00
parent cae7b5dcf6
commit e5078aba3b
38 changed files with 19 additions and 83 deletions

View File

@@ -5,11 +5,9 @@
#include <algorithm>
#include <assert.h>
#include <ctype.h>
#include <fstream>
#include <inttypes.h>
#include <ios>
#include <limits>
#include <numeric>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>

View File

@@ -4,10 +4,8 @@
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <deque>
#include <inttypes.h>
#include <numeric>
#include <optional>
#include <queue>
#include <type_traits>
@@ -15,6 +13,7 @@
#include "helpers.hpp"
#include "gfx/main.hpp"
#include "gfx/proto_palette.hpp"
using std::swap;

View File

@@ -3,11 +3,11 @@
#include "gfx/pal_sorting.hpp"
#include <algorithm>
#include <assert.h>
#include "helpers.hpp"
#include "gfx/main.hpp"
#include "gfx/process.hpp"
namespace sorting {

View File

@@ -9,7 +9,6 @@
#include <inttypes.h>
#include <limits.h>
#include <optional>
#include <ostream>
#include <stdint.h>
#include <stdio.h>
#include <streambuf>
@@ -17,9 +16,8 @@
#include <string>
#include <string_view>
#include <tuple>
#include <type_traits>
#include <unordered_map>
#include "helpers.hpp"
#include "platform.hpp"
#include "gfx/main.hpp"

View File

@@ -5,13 +5,9 @@
#include <algorithm>
#include <assert.h>
#include <errno.h>
#include <fstream>
#include <inttypes.h>
#include <limits.h>
#include <memory>
#include <optional>
#include <png.h>
#include <setjmp.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>

View File

@@ -2,6 +2,7 @@
#include "gfx/proto_palette.hpp"
#include <algorithm>
#include <assert.h>
#include "helpers.hpp"

View File

@@ -6,17 +6,14 @@
#include <array>
#include <assert.h>
#include <errno.h>
#include <fstream>
#include <inttypes.h>
#include <optional>
#include <png.h>
#include <string.h>
#include <tuple>
#include <vector>
#include "defaultinitalloc.hpp"
#include "file.hpp"
#include "helpers.hpp"
#include "itertools.hpp"
#include "gfx/main.hpp"