Remove Unused Project Includes From Files With Platform-Specific Code

A Linux include-what-you-use run cannot see the code inside _WIN32, __APPLE__ or __linux__ blocks, so its verdict is only taken where nothing the removed header declares, directly or through what it includes, is named inside those blocks. Removals also have to hold in both the Release and Debug configuration and never touch a line inside a conditional block.
This commit is contained in:
Hanif Koh
2026-10-03 22:45:55 +08:00
parent 0a30cfe6b0
commit bf43b9ea7b
98 changed files with 114 additions and 211 deletions
+2 -4
View File
@@ -12,7 +12,6 @@
#include <boost/filesystem/path.hpp>
#include <boost/iostreams/detail/select.hpp>
#include <boost/log/trivial.hpp>
#include "slic3r/GUI/Printer/PrinterFileSystem.h"
#include <map>
#include "slic3r/GUI/GUI.hpp"
#include "slic3r/GUI/GUI_Utils.hpp"
@@ -36,7 +35,6 @@
#include "libslic3r/Preset.hpp"
#include "libslic3r/PresetBundle.hpp"
#include "libslic3r/PresetCacheFormat.hpp"
#include "slic3r/GUI/wxExtensions.hpp"
#include "slic3r/GUI/GUI_App.hpp"
#include "libslic3r_version.h"
@@ -74,8 +72,6 @@
#include "Plater.hpp"
#include <boost/dll.hpp>
#include <slic3r/GUI/Widgets/WebView.hpp>
#include <slic3r/Utils/Http.hpp>
#include <libslic3r/miniz_extension.hpp>
#include <libslic3r/Utils.hpp>
#include "CreatePresetsDialog.hpp"
#include "libslic3r/PrintConfig.hpp"
@@ -83,6 +79,8 @@
#include "slic3r/Utils/PresetUpdater.hpp"
#include "slic3r/Utils/json_diff.hpp"
class wxWindow;
namespace fs = boost::filesystem;
using namespace nlohmann;