diff --git a/irr/include/IFileSystem.h b/irr/include/IFileSystem.h index 2c7854ad7..344fd301b 100644 --- a/irr/include/IFileSystem.h +++ b/irr/include/IFileSystem.h @@ -7,10 +7,6 @@ #include "IReferenceCounted.h" #include "IFileArchive.h" -namespace video -{ -class IVideoDriver; -} // end namespace video namespace io { diff --git a/irr/include/IGPUProgrammingServices.h b/irr/include/IGPUProgrammingServices.h index 5c64d602d..6940cb0f0 100644 --- a/irr/include/IGPUProgrammingServices.h +++ b/irr/include/IGPUProgrammingServices.h @@ -8,15 +8,9 @@ #include "EPrimitiveTypes.h" #include "path.h" -namespace io -{ -class IReadFile; -} // end namespace io - namespace video { -class IVideoDriver; class IShaderConstantSetCallBack; //! Interface making it possible to create and use programs running on the GPU. diff --git a/irr/include/IGUIEnvironment.h b/irr/include/IGUIEnvironment.h index b7f384803..d4e6b1b75 100644 --- a/irr/include/IGUIEnvironment.h +++ b/irr/include/IGUIEnvironment.h @@ -16,8 +16,6 @@ class IEventReceiver; namespace io { -class IReadFile; -class IWriteFile; class IFileSystem; } // end namespace io namespace video @@ -44,7 +42,6 @@ class IGUITabControl; class IGUITab; class IGUIComboBox; class IGUIButton; -class IGUIWindow; //! GUI Environment. Used as factory and manager of all other GUI elements. /** \par This element can create the following events of type EGUI_EVENT_TYPE (which are passed on to focused sub-elements): diff --git a/irr/include/IMeshCache.h b/irr/include/IMeshCache.h index 8fd0aaec9..6b8fd6fe0 100644 --- a/irr/include/IMeshCache.h +++ b/irr/include/IMeshCache.h @@ -11,8 +11,6 @@ namespace scene { class IMesh; class IAnimatedMesh; -class IAnimatedMeshSceneNode; -class IMeshLoader; //! The mesh cache stores already loaded meshes and provides an interface to them. /** You can access it using ISceneManager::getMeshCache(). All existing diff --git a/irr/include/ISceneManager.h b/irr/include/ISceneManager.h index 17c88b01f..c4fff3c6a 100644 --- a/irr/include/ISceneManager.h +++ b/irr/include/ISceneManager.h @@ -11,28 +11,16 @@ #include "SColor.h" #include "ESceneNodeTypes.h" -struct SKeyMap; struct SEvent; namespace io { class IReadFile; -class IWriteFile; -class IFileSystem; } // end namespace io -namespace gui -{ -class IGUIFont; -class IGUIEnvironment; -} // end namespace gui - namespace video { class IVideoDriver; -class SMaterial; -class IImage; -class ITexture; } // end namespace video namespace scene @@ -89,14 +77,12 @@ class ICameraSceneNode; class IDummyTransformationSceneNode; class IMesh; class SkinnedMesh; -class IMeshBuffer; class IMeshCache; class ISceneCollisionManager; class IMeshLoader; class IMeshManipulator; class IMeshSceneNode; class ISceneNode; -class ISceneNodeFactory; //! The Scene Manager manages scene nodes, mesh resources, cameras and all the other stuff. /** All Scene nodes can be created only here. diff --git a/irr/include/IrrlichtDevice.h b/irr/include/IrrlichtDevice.h index 222dc6759..046ac99ab 100644 --- a/irr/include/IrrlichtDevice.h +++ b/irr/include/IrrlichtDevice.h @@ -40,7 +40,6 @@ namespace video { class IContextManager; class IImage; -class ITexture; class IVideoDriver; extern "C" bool isDriverSupported(E_DRIVER_TYPE driver); } // end namespace video diff --git a/irr/include/SVertexManipulator.h b/irr/include/SVertexManipulator.h index 908b540f3..484645f56 100644 --- a/irr/include/SVertexManipulator.h +++ b/irr/include/SVertexManipulator.h @@ -9,9 +9,6 @@ namespace scene { -class IMesh; -class IMeshBuffer; -struct SMesh; //! Interface for vertex manipulators. /** You should derive your manipulator from this class if it shall be called for every vertex, getting as parameter just the vertex. diff --git a/irr/src/CAnimatedMeshSceneNode.h b/irr/src/CAnimatedMeshSceneNode.h index 98dc4f42a..f7fa31960 100644 --- a/irr/src/CAnimatedMeshSceneNode.h +++ b/irr/src/CAnimatedMeshSceneNode.h @@ -14,7 +14,6 @@ namespace scene { -class IDummyTransformationSceneNode; class CAnimatedMeshSceneNode : public IAnimatedMeshSceneNode { diff --git a/irr/src/CFileSystem.h b/irr/src/CFileSystem.h index adcc47853..9a60f6d38 100644 --- a/irr/src/CFileSystem.h +++ b/irr/src/CFileSystem.h @@ -10,7 +10,6 @@ namespace io { -class CZipReader; /*! FileSystem which uses normal files and one zipfile diff --git a/irr/src/CLimitReadFile.h b/irr/src/CLimitReadFile.h index f95ca5b2c..193b2cb18 100644 --- a/irr/src/CLimitReadFile.h +++ b/irr/src/CLimitReadFile.h @@ -7,7 +7,6 @@ #include "IReadFile.h" #include "irrString.h" -class CUnicodeConverter; namespace io { diff --git a/irr/src/COpenGLDriver.h b/irr/src/COpenGLDriver.h index d4d603c7b..d74c35250 100644 --- a/irr/src/COpenGLDriver.h +++ b/irr/src/COpenGLDriver.h @@ -6,10 +6,6 @@ #include "SIrrCreationParameters.h" -class CIrrDeviceWin32; -class CIrrDeviceLinux; -class CIrrDeviceSDL; -class CIrrDeviceMacOSX; #ifdef _IRR_COMPILE_WITH_OPENGL_ diff --git a/irr/src/CSceneManager.h b/irr/src/CSceneManager.h index ea035d237..057ef0180 100644 --- a/irr/src/CSceneManager.h +++ b/irr/src/CSceneManager.h @@ -12,10 +12,6 @@ #include "irrArray.h" #include "IMeshLoader.h" -namespace io -{ -class IFileSystem; -} namespace scene { class IMeshCache; diff --git a/irr/src/CXMeshFileLoader.h b/irr/src/CXMeshFileLoader.h index 9bb329673..268a2ee3b 100644 --- a/irr/src/CXMeshFileLoader.h +++ b/irr/src/CXMeshFileLoader.h @@ -14,7 +14,6 @@ class IReadFile; } // end namespace io namespace scene { -class IMeshManipulator; //! Meshloader capable of loading x meshes. class CXMeshFileLoader : public IMeshLoader diff --git a/irr/src/OpenGL/Common.h b/irr/src/OpenGL/Common.h index d032a8e73..fbde39d3b 100644 --- a/irr/src/OpenGL/Common.h +++ b/irr/src/OpenGL/Common.h @@ -22,7 +22,6 @@ namespace video // Forward declarations. -class COpenGLCoreFeature; template class COpenGLCoreTexture; @@ -38,7 +37,6 @@ typedef COpenGLCoreTexture COpenGL3Texture; typedef COpenGLCoreRenderTarget COpenGL3RenderTarget; typedef COpenGLCoreCacheHandler COpenGL3CacheHandler; -class OpenGLVBO; enum OpenGLSpec : u8 { diff --git a/irr/src/OpenGL/Driver.h b/irr/src/OpenGL/Driver.h index 714586724..3ad0e720c 100644 --- a/irr/src/OpenGL/Driver.h +++ b/irr/src/OpenGL/Driver.h @@ -20,7 +20,6 @@ namespace video { struct VertexType; -class COpenGL3FixedPipelineRenderer; class COpenGL3Renderer2D; class COpenGL3DriverBase : public CNullDriver, public IMaterialRendererServices, public COpenGL3ExtensionHandler diff --git a/src/activeobjectmgr.h b/src/activeobjectmgr.h index 952d812ef..176e3d30c 100644 --- a/src/activeobjectmgr.h +++ b/src/activeobjectmgr.h @@ -9,7 +9,6 @@ #include "irrlichttypes.h" #include "util/basic_macros.h" -class TestClientActiveObjectMgr; class TestServerActiveObjectMgr; template diff --git a/src/client/client.h b/src/client/client.h index a8d2274ea..303f51fd4 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -35,7 +35,6 @@ class ISoundManager; class IWritableItemDefManager; class IWritableShaderSource; class IWritableTextureSource; -class MapBlockMesh; class MapDatabase; class MeshUpdateManager; class Minimap; @@ -51,12 +50,14 @@ struct ClientDynamicInfo; struct ClientEvent; struct MapDrawControl; struct MapNode; -struct MeshMakeData; -struct MinimapMapblock; struct PlayerControl; struct PointedThing; struct ItemVisualsManager; +namespace scene { +class IAnimatedMesh; +} + namespace con { class IConnection; } diff --git a/src/client/clientmap.h b/src/client/clientmap.h index ce527bd23..3fda1c28a 100644 --- a/src/client/clientmap.h +++ b/src/client/clientmap.h @@ -23,8 +23,6 @@ struct MapDrawControl }; class Client; -class ITextureSource; -class PartialMeshBuffer; namespace scene { diff --git a/src/client/clientobject.h b/src/client/clientobject.h index 188c76ea0..3f065f90b 100644 --- a/src/client/clientobject.h +++ b/src/client/clientobject.h @@ -14,10 +14,7 @@ class ClientEnvironment; class ITextureSource; class Client; -class IGameDef; -class LocalPlayer; struct ItemStack; -class WieldMeshSceneNode; namespace scene { diff --git a/src/client/clientsimpleobject.h b/src/client/clientsimpleobject.h index c2700d286..7fef659e9 100644 --- a/src/client/clientsimpleobject.h +++ b/src/client/clientsimpleobject.h @@ -5,7 +5,6 @@ #pragma once #include "irrlichttypes_bloated.h" -class ClientEnvironment; class ClientSimpleObject { diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp index 410059354..fd2c79cfe 100644 --- a/src/client/content_cao.cpp +++ b/src/client/content_cao.cpp @@ -40,7 +40,6 @@ #include #include -class Settings; struct ToolCapabilities; std::unordered_map ClientActiveObject::m_types; diff --git a/src/client/content_cao.h b/src/client/content_cao.h index e780cf204..140d25e57 100644 --- a/src/client/content_cao.h +++ b/src/client/content_cao.h @@ -22,10 +22,10 @@ namespace scene { class IBillboardSceneNode; } -class Camera; class Client; struct Nametag; struct MinimapMarker; +class WieldMeshSceneNode; /* SmoothTranslator and other helpers diff --git a/src/client/content_cso.h b/src/client/content_cso.h index 4085bb58f..10ec42155 100644 --- a/src/client/content_cso.h +++ b/src/client/content_cso.h @@ -12,5 +12,7 @@ namespace scene class ISceneManager; } +class ClientEnvironment; + ClientSimpleObject* createSmokePuff(scene::ISceneManager *smgr, ClientEnvironment *env, v3f pos, v2f size); diff --git a/src/client/game.h b/src/client/game.h index 95976ac7b..883daac72 100644 --- a/src/client/game.h +++ b/src/client/game.h @@ -16,7 +16,6 @@ class InputHandler; class ChatBackend; class RenderingEngine; -struct SubgameSpec; struct GameStartData; struct Jitter { diff --git a/src/client/game_formspec.h b/src/client/game_formspec.h index 8ad3059af..b83e0a659 100644 --- a/src/client/game_formspec.h +++ b/src/client/game_formspec.h @@ -12,7 +12,6 @@ class Client; class RenderingEngine; class InputHandler; -class ISoundManager; class GUIFormSpecMenu; /* diff --git a/src/client/imagefilters.h b/src/client/imagefilters.h index 7b6e8a44b..f1b6bc7be 100644 --- a/src/client/imagefilters.h +++ b/src/client/imagefilters.h @@ -10,7 +10,6 @@ namespace video { - class IVideoDriver; class IImage; } diff --git a/src/client/localplayer.h b/src/client/localplayer.h index 2f108dcce..3fab91cfb 100644 --- a/src/client/localplayer.h +++ b/src/client/localplayer.h @@ -14,8 +14,6 @@ class Client; class Environment; class GenericCAO; class ClientActiveObject; -class ClientEnvironment; -class IGameDef; struct CollisionInfo; struct collisionMoveResult; diff --git a/src/client/mapblock_mesh.h b/src/client/mapblock_mesh.h index 4df70320f..d0fce2140 100644 --- a/src/client/mapblock_mesh.h +++ b/src/client/mapblock_mesh.h @@ -30,7 +30,6 @@ class ITextureSource; */ -class MapBlock; struct MinimapMapblock; struct MeshMakeData diff --git a/src/client/mesh_generator_thread.h b/src/client/mesh_generator_thread.h index 133c54b3f..fe400d3e1 100644 --- a/src/client/mesh_generator_thread.h +++ b/src/client/mesh_generator_thread.h @@ -15,6 +15,8 @@ #include #include +class MapBlock; + struct QueuedMeshUpdate { v3s16 p = v3s16(-1337, -1337, -1337); diff --git a/src/client/render/core.h b/src/client/render/core.h index e05cfa7f7..c6854c411 100644 --- a/src/client/render/core.h +++ b/src/client/render/core.h @@ -11,12 +11,9 @@ class IrrlichtDevice; class ShadowRenderer; -class Camera; class Client; class Hud; -class Minimap; class RenderPipeline; -class RenderTarget; class RenderingCore { diff --git a/src/client/renderingengine.h b/src/client/renderingengine.h index 24896a485..54194c701 100644 --- a/src/client/renderingengine.h +++ b/src/client/renderingengine.h @@ -27,11 +27,8 @@ struct VideoDriverInfo { }; class ITextureSource; -class Camera; class Client; -class LocalPlayer; class Hud; -class Minimap; class RenderingCore; diff --git a/src/client/wieldmesh.h b/src/client/wieldmesh.h index ce8e5d151..d2a7401f0 100644 --- a/src/client/wieldmesh.h +++ b/src/client/wieldmesh.h @@ -22,11 +22,9 @@ namespace scene } - struct ItemStack; class Client; class ITextureSource; -struct ContentFeatures; class ShadowRenderer; /* diff --git a/src/collision.h b/src/collision.h index 5306cdd8a..b38b38dd7 100644 --- a/src/collision.h +++ b/src/collision.h @@ -7,7 +7,6 @@ #include "irrlichttypes_bloated.h" #include -class Map; class IGameDef; class Environment; class ActiveObject; diff --git a/src/content/subgames.h b/src/content/subgames.h index 1884ce578..fb655f8ba 100644 --- a/src/content/subgames.h +++ b/src/content/subgames.h @@ -9,7 +9,6 @@ #include #include -class Settings; struct SubgameSpec { diff --git a/src/defaultsettings.h b/src/defaultsettings.h index f49bc2b89..7b1ce1f18 100644 --- a/src/defaultsettings.h +++ b/src/defaultsettings.h @@ -4,7 +4,6 @@ #pragma once -class Settings; /** * initialize basic default settings diff --git a/src/emerge.h b/src/emerge.h index c7a7d62d4..860d4b699 100644 --- a/src/emerge.h +++ b/src/emerge.h @@ -20,9 +20,9 @@ infostream << "EmergeThread: " x << std::endl; \ } +class EmergeManager; class EmergeThread; class NodeDefManager; -class Settings; class MapSettingsManager; class BiomeManager; class OreManager; diff --git a/src/gamedef.h b/src/gamedef.h index 247ec09f6..3b812e684 100644 --- a/src/gamedef.h +++ b/src/gamedef.h @@ -11,23 +11,13 @@ class IItemDefManager; class NodeDefManager; class ICraftDefManager; -class ITextureSource; -class IShaderSource; class IRollbackManager; -class EmergeManager; -class Camera; class ModChannel; -class ModStorage; class ModStorageDatabase; struct SubgameSpec; struct ModSpec; struct ModIPCStore; -namespace scene { - class IAnimatedMesh; - class ISceneManager; -} - /* An interface for fetching game-global definitions like tool and mapnode properties diff --git a/src/gui/guiAnimatedImage.h b/src/gui/guiAnimatedImage.h index 42d2f3451..163146d61 100644 --- a/src/gui/guiAnimatedImage.h +++ b/src/gui/guiAnimatedImage.h @@ -5,7 +5,6 @@ #include -class ISimpleTextureSource; class GUIAnimatedImage : public gui::IGUIElement { public: diff --git a/src/gui/guiEngine.h b/src/gui/guiEngine.h index 32dbdce72..da0700319 100644 --- a/src/gui/guiEngine.h +++ b/src/gui/guiEngine.h @@ -40,7 +40,6 @@ struct image_definition { class GUIEngine; class RenderingEngine; class MainMenuScripting; -class IWritableShaderSource; struct MainMenuData; /******************************************************************************/ diff --git a/src/gui/guiOpenURL.h b/src/gui/guiOpenURL.h index f48f1aaa5..f994e7a9f 100644 --- a/src/gui/guiOpenURL.h +++ b/src/gui/guiOpenURL.h @@ -20,7 +20,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "modalMenu.h" #include -class Client; class ISimpleTextureSource; class GUIOpenURLMenu : public GUIModalMenu diff --git a/src/gui/touchcontrols.h b/src/gui/touchcontrols.h index 1cdfe655c..8e8e93f56 100644 --- a/src/gui/touchcontrols.h +++ b/src/gui/touchcontrols.h @@ -25,10 +25,6 @@ namespace gui class IGUIImage; class IGUIStaticText; } -namespace video -{ - class IVideoDriver; -} class ISimpleTextureSource; diff --git a/src/itemdef.h b/src/itemdef.h index 3feee79d1..fbbadaab0 100644 --- a/src/itemdef.h +++ b/src/itemdef.h @@ -18,6 +18,7 @@ #include "util/pointedthing.h" struct ToolCapabilities; +struct ItemDefinition; /* Base item definition diff --git a/src/itemstackmetadata.h b/src/itemstackmetadata.h index c3eda83ed..62a7a12a1 100644 --- a/src/itemstackmetadata.h +++ b/src/itemstackmetadata.h @@ -9,8 +9,6 @@ #include -class Inventory; -class IItemDefManager; class ItemStackMetadata : public SimpleMetadata { diff --git a/src/map.h b/src/map.h index 57ede8ee6..85d7e00cd 100644 --- a/src/map.h +++ b/src/map.h @@ -21,7 +21,6 @@ class MapSector; class NodeMetadata; class IGameDef; -class IRollbackManager; /* MapEditEvent diff --git a/src/mapgen/mapgen.h b/src/mapgen/mapgen.h index 31313b35f..17b243143 100644 --- a/src/mapgen/mapgen.h +++ b/src/mapgen/mapgen.h @@ -32,17 +32,12 @@ class NodeDefManager; extern const FlagDesc flagdesc_mapgen[]; extern const FlagDesc flagdesc_gennotify[]; -class Biome; class BiomeGen; struct BiomeParams; class BiomeManager; class EmergeParams; -class EmergeManager; -class MapBlock; -class VoxelManipulator; struct BlockMakeData; class VoxelArea; -class Map; enum MapgenObject { MGOBJ_VMANIP, diff --git a/src/mapgen/mapgen_carpathian.h b/src/mapgen/mapgen_carpathian.h index 754634af8..175994be9 100644 --- a/src/mapgen/mapgen_carpathian.h +++ b/src/mapgen/mapgen_carpathian.h @@ -10,7 +10,6 @@ #define MGCARPATHIAN_CAVERNS 0x01 #define MGCARPATHIAN_RIVERS 0x02 -class BiomeManager; extern const FlagDesc flagdesc_mapgen_carpathian[]; diff --git a/src/mapgen/mapgen_flat.h b/src/mapgen/mapgen_flat.h index 6eb303765..9071edb9e 100644 --- a/src/mapgen/mapgen_flat.h +++ b/src/mapgen/mapgen_flat.h @@ -12,7 +12,6 @@ #define MGFLAT_HILLS 0x02 #define MGFLAT_CAVERNS 0x04 -class BiomeManager; extern const FlagDesc flagdesc_mapgen_flat[]; diff --git a/src/mapgen/mapgen_fractal.h b/src/mapgen/mapgen_fractal.h index 1070f7f25..6c141e379 100644 --- a/src/mapgen/mapgen_fractal.h +++ b/src/mapgen/mapgen_fractal.h @@ -10,7 +10,6 @@ ///////////// Mapgen Fractal flags #define MGFRACTAL_TERRAIN 0x01 -class BiomeManager; extern const FlagDesc flagdesc_mapgen_fractal[]; diff --git a/src/mapgen/mapgen_v5.h b/src/mapgen/mapgen_v5.h index 7901347dc..ef60cfa68 100644 --- a/src/mapgen/mapgen_v5.h +++ b/src/mapgen/mapgen_v5.h @@ -10,7 +10,6 @@ ///////// Mapgen V5 flags #define MGV5_CAVERNS 0x01 -class BiomeManager; extern const FlagDesc flagdesc_mapgen_v5[]; diff --git a/src/mapgen/mapgen_v7.h b/src/mapgen/mapgen_v7.h index 10a0aa12e..6c1c509d2 100644 --- a/src/mapgen/mapgen_v7.h +++ b/src/mapgen/mapgen_v7.h @@ -14,7 +14,6 @@ #define MGV7_CAVERNS 0x08 #define MGV7_BIOMEREPEAT 0x10 // Now unused -class BiomeManager; extern const FlagDesc flagdesc_mapgen_v7[]; diff --git a/src/mapgen/mapgen_valleys.h b/src/mapgen/mapgen_valleys.h index 7e318bb59..a36ade208 100644 --- a/src/mapgen/mapgen_valleys.h +++ b/src/mapgen/mapgen_valleys.h @@ -21,7 +21,6 @@ Licensing changed by permission of Gael de Sailly. #define MGVALLEYS_VARY_RIVER_DEPTH 0x04 #define MGVALLEYS_ALT_DRY 0x08 -class BiomeManager; class BiomeGenOriginal; extern const FlagDesc flagdesc_mapgen_valleys[]; diff --git a/src/mapgen/mg_schematic.h b/src/mapgen/mg_schematic.h index 02b40a6ba..dcb2db994 100644 --- a/src/mapgen/mg_schematic.h +++ b/src/mapgen/mg_schematic.h @@ -11,9 +11,7 @@ class Map; class ServerMap; -class Mapgen; class MMVManip; -class PseudoRandom; class NodeResolver; class Server; diff --git a/src/nodedef.h b/src/nodedef.h index 967e3fcd4..3477cb7db 100644 --- a/src/nodedef.h +++ b/src/nodedef.h @@ -147,7 +147,6 @@ private: }; struct MapNode; -class NodeMetadata; enum LeavesStyle { LEAVES_FANCY, diff --git a/src/player.h b/src/player.h index 80a3c98c1..4a1960a9d 100644 --- a/src/player.h +++ b/src/player.h @@ -137,9 +137,7 @@ enum CameraMode { extern const struct EnumString es_CameraMode[]; -class Map; struct HudElement; -class Environment; class Player { diff --git a/src/rollback_interface.h b/src/rollback_interface.h index aa45cbf28..0a41895fd 100644 --- a/src/rollback_interface.h +++ b/src/rollback_interface.h @@ -13,7 +13,6 @@ class Map; class IGameDef; -struct MapNode; class InventoryManager; struct RollbackNode diff --git a/src/script/common/c_content.h b/src/script/common/c_content.h index f57c15797..28ec1601f 100644 --- a/src/script/common/c_content.h +++ b/src/script/common/c_content.h @@ -51,7 +51,6 @@ struct DigParams; struct HitParams; struct EnumString; struct NoiseParams; -class Schematic; class ServerActiveObject; struct collisionMoveResult; namespace treegen { struct TreeDef; } diff --git a/src/script/cpp_api/s_item.h b/src/script/cpp_api/s_item.h index 8c07dfae7..52569bc4d 100644 --- a/src/script/cpp_api/s_item.h +++ b/src/script/cpp_api/s_item.h @@ -11,7 +11,6 @@ struct PointedThing; struct ItemStack; class ServerActiveObject; -struct ItemDefinition; class LuaItemStack; class ModApiItem; class InventoryList; diff --git a/src/script/lua_api/l_inventory.h b/src/script/lua_api/l_inventory.h index b320536b3..12be19bb7 100644 --- a/src/script/lua_api/l_inventory.h +++ b/src/script/lua_api/l_inventory.h @@ -9,7 +9,6 @@ #include "inventory.h" #include "inventorymanager.h" -class RemotePlayer; /* InvRef diff --git a/src/script/lua_api/l_mainmenu.h b/src/script/lua_api/l_mainmenu.h index fc2d90af8..13c74fcd6 100644 --- a/src/script/lua_api/l_mainmenu.h +++ b/src/script/lua_api/l_mainmenu.h @@ -6,7 +6,6 @@ #include "lua_api/l_base.h" -class AsyncEngine; /** Implementation of lua api support for mainmenu */ class ModApiMainMenu: public ModApiBase diff --git a/src/script/lua_api/l_mapgen.h b/src/script/lua_api/l_mapgen.h index 67c48a0b0..45d1aed33 100644 --- a/src/script/lua_api/l_mapgen.h +++ b/src/script/lua_api/l_mapgen.h @@ -10,9 +10,9 @@ typedef u16 biome_t; // copy from mg_biome.h to avoid an unnecessary include class MMVManip; -class BiomeManager; class BiomeGen; class Mapgen; +class EmergeManager; class ModApiMapgen : public ModApiBase { diff --git a/src/script/lua_api/l_util.h b/src/script/lua_api/l_util.h index 0df2c3ae4..3d6aa741d 100644 --- a/src/script/lua_api/l_util.h +++ b/src/script/lua_api/l_util.h @@ -6,7 +6,6 @@ #include "lua_api/l_base.h" -class AsyncEngine; class ModApiUtil : public ModApiBase { diff --git a/src/script/lua_api/l_vmanip.h b/src/script/lua_api/l_vmanip.h index 95bb82ce2..f353709e4 100644 --- a/src/script/lua_api/l_vmanip.h +++ b/src/script/lua_api/l_vmanip.h @@ -8,7 +8,6 @@ #include "lua_api/l_base.h" class Map; -class MapBlock; class MMVManip; /* diff --git a/src/serverenvironment.h b/src/serverenvironment.h index 5f0b9deaa..973a8b00f 100644 --- a/src/serverenvironment.h +++ b/src/serverenvironment.h @@ -18,7 +18,6 @@ #include "util/numeric.h" #include "util/metricsbackend.h" -class IGameDef; struct GameParams; class RemotePlayer; class PlayerDatabase; diff --git a/src/servermap.h b/src/servermap.h index 7b33a66a9..c4bdff92d 100644 --- a/src/servermap.h +++ b/src/servermap.h @@ -14,7 +14,6 @@ class Settings; class MapDatabase; -class IRollbackManager; class EmergeManager; class ServerEnvironment; struct BlockMakeData; diff --git a/src/tool.h b/src/tool.h index 2e0fdfe20..8151f009e 100644 --- a/src/tool.h +++ b/src/tool.h @@ -16,7 +16,6 @@ #include #include -struct ItemDefinition; class IItemDefManager; /* diff --git a/src/unittest/mock_inventorymanager.h b/src/unittest/mock_inventorymanager.h index dec1b0503..e68dc0c02 100644 --- a/src/unittest/mock_inventorymanager.h +++ b/src/unittest/mock_inventorymanager.h @@ -8,7 +8,6 @@ #include "inventory.h" #include "server/serverinventorymgr.h" -class ServerEnvironment; class MockInventoryManager : public ServerInventoryManager { diff --git a/src/util/guid.h b/src/util/guid.h index 8a87db33f..64798e8fa 100644 --- a/src/util/guid.h +++ b/src/util/guid.h @@ -10,7 +10,6 @@ #include #include -class ServerEnvironment; /** * A global unique identifier.