Minor header cleanup

This has been done via CLion's "unused include directive",
set to "detect completely unused".
simplify_debugging
jvoisin 2 years ago
parent a5acc22954
commit c7a3f43915

@ -33,7 +33,6 @@
#include <limits> #include <limits>
#include <map> #include <map>
#include <memory> #include <memory>
#include <osg/ref_ptr>
#include <ostream> #include <ostream>
#include <string> #include <string>
#include <string_view> #include <string_view>

@ -25,7 +25,6 @@
#include <apps/opencs/model/world/refcollection.hpp> #include <apps/opencs/model/world/refcollection.hpp>
#include <apps/opencs/model/world/refidcollection.hpp> #include <apps/opencs/model/world/refidcollection.hpp>
#include <apps/opencs/model/world/refiddata.hpp> #include <apps/opencs/model/world/refiddata.hpp>
#include <apps/opencs/model/world/subcellcollection.hpp>
#include <apps/opencs/model/world/universalid.hpp> #include <apps/opencs/model/world/universalid.hpp>
#include <components/esm/esmcommon.hpp> #include <components/esm/esmcommon.hpp>
@ -39,7 +38,6 @@
#include <components/misc/strings/lower.hpp> #include <components/misc/strings/lower.hpp>
#include "../world/cellcoordinates.hpp" #include "../world/cellcoordinates.hpp"
#include "../world/infocollection.hpp"
#include "document.hpp" #include "document.hpp"

@ -4,7 +4,6 @@
#include <stdexcept> #include <stdexcept>
#include <utility> #include <utility>
#include "../world/columns.hpp"
#include "../world/idtablebase.hpp" #include "../world/idtablebase.hpp"
CSMFilter::ValueNode::ValueNode(int columnId, Type lowerType, Type upperType, double lower, double upper) CSMFilter::ValueNode::ValueNode(int columnId, Type lowerType, Type upperType, double lower, double upper)

@ -7,11 +7,6 @@
#include <vector> #include <vector>
#include "../doc/document.hpp" #include "../doc/document.hpp"
#include "../doc/operation.hpp"
#include "../doc/state.hpp"
#include "../world/data.hpp"
#include "../world/universalid.hpp"
#include "birthsigncheck.hpp" #include "birthsigncheck.hpp"
#include "bodypartcheck.hpp" #include "bodypartcheck.hpp"

@ -23,10 +23,6 @@
#include "../../model/doc/document.hpp" #include "../../model/doc/document.hpp"
#include "../../model/doc/documentmanager.hpp" #include "../../model/doc/documentmanager.hpp"
#include "../../model/doc/state.hpp"
#include "../../model/world/columns.hpp"
#include "../../model/world/idcompletionmanager.hpp"
#include "../../model/prefs/state.hpp" #include "../../model/prefs/state.hpp"
@ -35,7 +31,6 @@
#include "../world/idcompletiondelegate.hpp" #include "../world/idcompletiondelegate.hpp"
#include "../world/idtypedelegate.hpp" #include "../world/idtypedelegate.hpp"
#include "../world/recordstatusdelegate.hpp" #include "../world/recordstatusdelegate.hpp"
#include "../world/util.hpp"
#include "../world/vartypedelegate.hpp" #include "../world/vartypedelegate.hpp"
#include "view.hpp" #include "view.hpp"

@ -6,8 +6,6 @@
#include <apps/opencs/view/render/object.hpp> #include <apps/opencs/view/render/object.hpp>
#include <apps/opencs/view/render/scenewidget.hpp> #include <apps/opencs/view/render/scenewidget.hpp>
#include <osg/ref_ptr>
#include "../../model/world/data.hpp" #include "../../model/world/data.hpp"
#include "../../model/world/idtable.hpp" #include "../../model/world/idtable.hpp"

@ -9,7 +9,6 @@
#include <QTimer> #include <QTimer>
#include <QWidget> #include <QWidget>
#include <osg/Timer>
#include <osg/Vec4f> #include <osg/Vec4f>
#include <osg/ref_ptr> #include <osg/ref_ptr>

@ -13,7 +13,6 @@
#include <osg/Camera> #include <osg/Camera>
#include <osg/Vec3f> #include <osg/Vec3f>
#include <osg/ref_ptr>
#include <apps/opencs/model/doc/document.hpp> #include <apps/opencs/model/doc/document.hpp>
#include <apps/opencs/model/prefs/category.hpp> #include <apps/opencs/model/prefs/category.hpp>

@ -14,7 +14,6 @@
#include <osg/Vec2f> #include <osg/Vec2f>
#include <osg/Vec3d> #include <osg/Vec3d>
#include <osg/ref_ptr>
#include <apps/opencs/model/prefs/category.hpp> #include <apps/opencs/model/prefs/category.hpp>
#include <apps/opencs/model/prefs/setting.hpp> #include <apps/opencs/model/prefs/setting.hpp>
@ -41,7 +40,6 @@
#include "../../model/world/landtexture.hpp" #include "../../model/world/landtexture.hpp"
#include "../../model/world/tablemimedata.hpp" #include "../../model/world/tablemimedata.hpp"
#include "../../model/world/universalid.hpp" #include "../../model/world/universalid.hpp"
#include "../widget/brushshapes.hpp"
#include "brushdraw.hpp" #include "brushdraw.hpp"
#include "editmode.hpp" #include "editmode.hpp"

@ -28,7 +28,6 @@
#include "../widget/scenetooltoggle2.hpp" #include "../widget/scenetooltoggle2.hpp"
#include "cameracontroller.hpp" #include "cameracontroller.hpp"
#include "mask.hpp"
namespace CSVRender namespace CSVRender
{ {

@ -50,7 +50,6 @@
#include "cameracontroller.hpp" #include "cameracontroller.hpp"
#include "instancemode.hpp" #include "instancemode.hpp"
#include "mask.hpp"
#include "object.hpp" #include "object.hpp"
#include "pathgridmode.hpp" #include "pathgridmode.hpp"

@ -12,8 +12,6 @@
#include <components/misc/rng.hpp> #include <components/misc/rng.hpp>
#include <osg/Timer>
#include "../mwworld/doorstate.hpp" #include "../mwworld/doorstate.hpp"
#include "../mwworld/globalvariablename.hpp" #include "../mwworld/globalvariablename.hpp"
#include "../mwworld/ptr.hpp" #include "../mwworld/ptr.hpp"

@ -1,5 +1,7 @@
#include "stat.hpp" #include "stat.hpp"
#include <algorithm>
#include <components/esm3/statstate.hpp> #include <components/esm3/statstate.hpp>
namespace MWMechanics namespace MWMechanics

@ -1,9 +1,6 @@
#ifndef GAME_MWMECHANICS_STAT_H #ifndef GAME_MWMECHANICS_STAT_H
#define GAME_MWMECHANICS_STAT_H #define GAME_MWMECHANICS_STAT_H
#include <algorithm>
#include <limits>
namespace ESM namespace ESM
{ {
template <typename T> template <typename T>

@ -1,6 +1,7 @@
#ifndef GAME_MWWORLD_WORLDIMP_H #ifndef GAME_MWWORLD_WORLDIMP_H
#define GAME_MWWORLD_WORLDIMP_H #define GAME_MWWORLD_WORLDIMP_H
#include <osg/Timer>
#include <osg/ref_ptr> #include <osg/ref_ptr>
#include <components/detournavigator/collisionshapetype.hpp> #include <components/detournavigator/collisionshapetype.hpp>

@ -28,7 +28,6 @@
#define ESM4_LIGHTING_H #define ESM4_LIGHTING_H
#include <cstdint> #include <cstdint>
#include <limits>
namespace ESM4 namespace ESM4
{ {

@ -30,8 +30,6 @@
#include <cstdint> #include <cstdint>
#include <vector> #include <vector>
#include "common.hpp" // GroupLabel
namespace ESM4 namespace ESM4
{ {
// http://www.uesp.net/wiki/Tes4Mod:Mod_File_Format#Hierarchical_Top_Groups // http://www.uesp.net/wiki/Tes4Mod:Mod_File_Format#Hierarchical_Top_Groups

@ -1,8 +1,6 @@
#ifndef OPENMW_COMPONENTS_MISC_THREAD_H #ifndef OPENMW_COMPONENTS_MISC_THREAD_H
#define OPENMW_COMPONENTS_MISC_THREAD_H #define OPENMW_COMPONENTS_MISC_THREAD_H
#include <thread>
namespace Misc namespace Misc
{ {
void setCurrentThreadIdlePriority(); void setCurrentThreadIdlePriority();

@ -1,13 +1,12 @@
#include "platform.hpp" #include "platform.hpp"
#include <stdio.h>
namespace Platform namespace Platform
{ {
static void increaseFileHandleLimit() static void increaseFileHandleLimit()
{ {
#ifdef WIN32 #ifdef WIN32
#include <stdio.h>
// Increase limit for open files at the stream I/O level, see // Increase limit for open files at the stream I/O level, see
// https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/setmaxstdio?view=msvc-170#remarks // https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/setmaxstdio?view=msvc-170#remarks
_setmaxstdio(8192); _setmaxstdio(8192);

@ -1,8 +1,6 @@
#ifndef OPENMW_COMPONENTS_RESOURCE_NIFFILEMANAGER_H #ifndef OPENMW_COMPONENTS_RESOURCE_NIFFILEMANAGER_H
#define OPENMW_COMPONENTS_RESOURCE_NIFFILEMANAGER_H #define OPENMW_COMPONENTS_RESOURCE_NIFFILEMANAGER_H
#include <osg/ref_ptr>
#include <components/nif/niffile.hpp> #include <components/nif/niffile.hpp>
#include "resourcemanager.hpp" #include "resourcemanager.hpp"

@ -1,8 +1,5 @@
#ifndef COMPONENTS_SCENEUTIL_LIGHTCOMMON #ifndef COMPONENTS_SCENEUTIL_LIGHTCOMMON
#define COMPONENTS_SCENEUTIL_LIGHTCOMMON #define COMPONENTS_SCENEUTIL_LIGHTCOMMON
#include <string_view>
#include <variant>
#include <osg/Vec4> #include <osg/Vec4>

@ -1,8 +1,6 @@
#ifndef OPENMW_COMPONENTS_SDLUTIL_SDLINPUTWRAPPER_H #ifndef OPENMW_COMPONENTS_SDLUTIL_SDLINPUTWRAPPER_H
#define OPENMW_COMPONENTS_SDLUTIL_SDLINPUTWRAPPER_H #define OPENMW_COMPONENTS_SDLUTIL_SDLINPUTWRAPPER_H
#include <map>
#include <osg/ref_ptr> #include <osg/ref_ptr>
#include <SDL_events.h> #include <SDL_events.h>

@ -1,8 +1,6 @@
#ifndef OPENMW_COMPONENTS_SQLITE3_TYPES_H #ifndef OPENMW_COMPONENTS_SQLITE3_TYPES_H
#define OPENMW_COMPONENTS_SQLITE3_TYPES_H #define OPENMW_COMPONENTS_SQLITE3_TYPES_H
#include <cstddef>
namespace Sqlite3 namespace Sqlite3
{ {
struct ConstBlob struct ConstBlob

@ -2,7 +2,6 @@
#define COMPONENTS_TERRAIN_HEIGHTCULL_H #define COMPONENTS_TERRAIN_HEIGHTCULL_H
#include <osg/Referenced> #include <osg/Referenced>
#include <osg/ref_ptr>
#include <limits> #include <limits>

Loading…
Cancel
Save