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-04 14:53:22 +08:00
parent e374956d03
commit abce184b76
98 changed files with 114 additions and 211 deletions
+2 -1
View File
@@ -9,7 +9,6 @@
#include "GUI_App.hpp"
#include "GUI_Preview.hpp"
#include "MainFrame.hpp"
#include "format.hpp"
#include "Widgets/ProgressDialog.hpp"
#include "Widgets/RoundedRectangle.hpp"
#include "Widgets/StaticBox.hpp"
@@ -134,6 +133,8 @@
#include "slic3r/Utils/NetworkAgent.hpp"
#include <boost/filesystem.hpp>
namespace Slic3r { class PrintBase; }
namespace fs = boost::filesystem;
namespace Slic3r { namespace GUI {