all: cleanup unused includes (Clion - detect not directly used)

This commit is contained in:
Eric Wasylishen 2022-10-31 21:37:34 -06:00
parent 0924423c20
commit 2bd2515792
32 changed files with 0 additions and 86 deletions

View File

@ -21,16 +21,13 @@
#include <common/cmdlib.hh>
#include <common/bspfile.hh>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <fmt/ostream.h>
#include <common/json.hh>
#include "common/fs.hh"
#include "common/polylib.hh"
#include "common/bsputils.hh"
#include "common/imglib.hh"
static void PrintBSPTextureUsage(const mbsp_t &bsp)
{

View File

@ -894,8 +894,6 @@ struct gamedef_hl_t : public gamedef_q1_like_t<GAME_HALF_LIFE>
}
};
#include <mutex>
struct gamedef_q2_t : public gamedef_t
{
gamedef_q2_t() : gamedef_t("BASEQ2")

View File

@ -18,14 +18,10 @@
*/
#include <common/cmdlib.hh>
#include <common/log.hh>
#include <common/threads.hh>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef _WIN32
#include <direct.h>
#include <windows.h>
// don't break std::min

View File

@ -33,7 +33,6 @@
#include <vector>
#include <cstdio>
#include <string>
#include <memory>
#include <utility>
#include <tuple>

View File

@ -19,9 +19,7 @@
#include <common/entdata.h>
#include <cstring>
#include <sstream>
#include <common/cmdlib.hh>
#include <common/bsputils.hh>
#include <common/parser.hh>

View File

@ -26,7 +26,6 @@
#include <memory>
#include <array>
#include <list>
#include <set>
#include <stdexcept>
#include <unordered_map>

View File

@ -1,4 +1,3 @@
#include <map>
#include <vector>
#include <common/fs.hh>
#include <common/imglib.hh>

View File

@ -32,7 +32,6 @@
#include <string>
#include <common/log.hh>
#include <common/threads.hh>
#include <common/settings.hh>
#include <common/cmdlib.hh>

View File

@ -19,10 +19,8 @@
*/
#include <cstdint>
#include <cassert>
//#include <cstdio>
#include <atomic>
#include <iostream>
#include <light/light.hh>
#include <light/bounce.hh>
@ -32,14 +30,9 @@
#include <common/polylib.hh>
#include <common/bsputils.hh>
#include <memory>
#include <vector>
#include <map>
#include <unordered_map>
#include <set>
#include <algorithm>
#include <mutex>
#include <string>
#include <common/qvec.hh>
#include <common/parallel.hh>

View File

@ -26,7 +26,6 @@
#include <light/light.hh>
#include <light/entities.hh>
#include <light/ltface.hh>
#include <common/bsputils.hh>
#include <common/parallel.hh>

View File

@ -18,8 +18,6 @@
*/
#include <cstdint>
#include <cassert>
//#include <cstdio>
#include <iostream>
#include <fstream>
#include <fmt/ostream.h>
@ -33,7 +31,6 @@
#include <light/ltface.hh>
#include <common/log.hh>
#include <common/polylib.hh>
#include <common/bsputils.hh>
#include <common/fs.hh>
#include <common/imglib.hh>
@ -47,7 +44,6 @@
#include <memory>
#include <vector>
#include <map>
#include <unordered_map>
#include <set>
#include <algorithm>
#include <mutex>

View File

@ -86,8 +86,6 @@ void WriteLitFile(const mbsp_t *bsp, const std::vector<facesup_t> &facesup, cons
litfile.write((const char *)lit_filebase.data(), bsp->dlightdata.size() * 3);
}
#include <fstream>
void WriteLuxFile(const mbsp_t *bsp, const fs::path &filename, int version)
{
litheader_t header;

View File

@ -19,24 +19,19 @@
*/
#include <cstdint>
#include <cassert>
//#include <cstdio>
#include <iostream>
#include <light/phong.hh>
#include <light/ltface.hh>
#include <common/polylib.hh>
#include <common/bsputils.hh>
#include <memory>
#include <vector>
#include <map>
#include <unordered_map>
#include <set>
#include <algorithm>
#include <mutex>
#include <string>
#include <common/qvec.hh>
#include <tbb/parallel_for_each.h>

View File

@ -19,11 +19,8 @@ See file, 'COPYING', for details.
*/
#include <cassert>
//#include <cstdio>
#include <iostream>
#include <light/light.hh>
#include <light/bounce.hh>
#include <light/surflight.hh>
#include <light/ltface.hh>
@ -34,7 +31,6 @@ See file, 'COPYING', for details.
#include <vector>
#include <map>
#include <mutex>
#include <string>
#include <common/qvec.hh>

View File

@ -17,14 +17,8 @@
See file, 'COPYING', for details.
*/
#include <light/light.hh>
#include <light/trace.hh>
#include <light/ltface.hh>
#include <common/bsputils.hh>
#ifdef HAVE_EMBREE
#include <light/trace_embree.hh>
#endif
#include <cassert>
/*
==============

View File

@ -20,14 +20,10 @@
#include <light/light.hh>
#include <light/bounce.hh>
#include <light/trace_embree.hh>
#include <light/ltface.hh>
#include <common/bsputils.hh>
#include <common/polylib.hh>
#include <vector>
#include <cassert>
#include <climits>
#include <cstdlib>
#include <limits>
using namespace std;
using namespace polylib;

View File

@ -25,7 +25,6 @@
#include <cstring>
#include <list>
#include <common/log.hh>
#include <qbsp/csg.hh>
#include <qbsp/map.hh>
#include <qbsp/qbsp.hh>

View File

@ -24,9 +24,7 @@
#include <climits>
#include <common/log.hh>
#include <common/vectorutils.hh>
#include <qbsp/brush.hh>
#include <qbsp/csg.hh>
#include <qbsp/map.hh>
#include <qbsp/portals.hh>
#include <qbsp/qbsp.hh>

View File

@ -23,7 +23,6 @@
#include <qbsp/brush.hh>
#include <qbsp/csg.hh>
#include <qbsp/map.hh>
#include <qbsp/brushbsp.hh>
#include <qbsp/qbsp.hh>
#include <common/log.hh>

View File

@ -26,11 +26,9 @@
#include <qbsp/csg.hh>
#include <qbsp/map.hh>
#include <qbsp/merge.hh>
#include <qbsp/brushbsp.hh>
#include <qbsp/qbsp.hh>
#include <qbsp/writebsp.hh>
#include <map>
#include <list>
struct makefaces_stats_t : logging::stat_tracker_t

View File

@ -19,7 +19,6 @@
#include <qbsp/qbsp.hh>
#include <common/settings.hh>
#include <common/fs.hh>
int main(int argc, const char **argv)
{

View File

@ -28,9 +28,6 @@
#include <qbsp/qbsp.hh>
#include <qbsp/outside.hh>
#include <qbsp/tree.hh>
// TEMP
#include <qbsp/writebsp.hh>
#include <common/log.hh>
#include <atomic>

View File

@ -30,8 +30,6 @@
#include <fstream>
#include <fmt/ostream.h>
#include "tbb/task_group.h"
/*
==============================================================================

View File

@ -26,14 +26,11 @@
#include <common/log.hh>
#include <common/aabb.hh>
#include <common/fs.hh>
#include <common/threads.hh>
#include <common/settings.hh>
#include <qbsp/brush.hh>
#include <qbsp/csg.hh>
#include <qbsp/exportobj.hh>
#include <qbsp/map.hh>
#include <qbsp/merge.hh>
#include <qbsp/portals.hh>
#include <qbsp/prtfile.hh>
#include <qbsp/brushbsp.hh>
@ -45,8 +42,6 @@
#include <fmt/chrono.h>
#include "tbb/global_control.h"
namespace settings
{
bool wadpath::operator<(const wadpath &other) const

View File

@ -21,7 +21,6 @@
#include <qbsp/tree.hh>
#include <common/vectorutils.hh>
#include <qbsp/qbsp.hh>
#include <qbsp/brush.hh>
#include <qbsp/portals.hh>

View File

@ -1,8 +1,6 @@
#include <doctest/doctest.h>
#include <filesystem>
#include <string>
#include <common/cmdlib.hh>
#include <common/bspfile.hh>
#include <common/bspfile_q1.hh>
#include <common/bspfile_q2.hh>

View File

@ -1,7 +1,6 @@
#include <doctest/doctest.h>
#include <light/entities.hh>
#include <vector>
TEST_SUITE("entities") {
TEST_CASE("CheckEmptyValues")

View File

@ -17,9 +17,7 @@
#include <nanobench.h>
#include <fstream>
#include <algorithm>
#include <cstring>
#include <set>
#include <stdexcept>
#include <tuple>
#include <map>

View File

@ -1,26 +1,16 @@
#include <qbsp/brush.hh>
#include <qbsp/brushbsp.hh>
#include <qbsp/qbsp.hh>
#include <qbsp/map.hh>
#include <common/fs.hh>
#include <common/bsputils.hh>
#include <common/decompile.hh>
#include <common/prtfile.hh>
#include <common/qvec.hh>
#include <testmaps.hh>
#include <subprocess.h>
#include <nanobench.h>
#include <algorithm>
#include <cstring>
#include <set>
#include <stdexcept>
#include <tuple>
#include <map>
#include <common/bspinfo.hh>
#include "test_qbsp.hh"
#include "testutils.hh"

View File

@ -1,4 +1,3 @@
#include <common/threads.hh>
#include <vis/vis.hh>
#include <vis/leafbits.hh>
#include <common/log.hh>

View File

@ -17,8 +17,6 @@
See file, 'COPYING', for details.
*/
#include <cfloat>
#include <common/log.hh>
#include <vis/vis.hh>
#include <common/bsputils.hh>

View File

@ -1,14 +1,12 @@
// vis.c
#include <climits>
#include <cstddef>
#include <cstdint>
#include <vis/leafbits.hh>
#include <vis/vis.hh>
#include <common/log.hh>
#include <common/bsputils.hh>
#include <common/threads.hh>
#include <common/fs.hh>
#include <common/parallel.hh>
#include <fmt/chrono.h>