mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Clean up unused Forward Declarations (#16324)
This commit is contained in:
parent
60cd83a332
commit
93dd22b901
67 changed files with 12 additions and 127 deletions
|
@ -9,7 +9,6 @@
|
|||
#include "irrlichttypes.h"
|
||||
#include "util/basic_macros.h"
|
||||
|
||||
class TestClientActiveObjectMgr;
|
||||
class TestServerActiveObjectMgr;
|
||||
|
||||
template <typename T>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -23,8 +23,6 @@ struct MapDrawControl
|
|||
};
|
||||
|
||||
class Client;
|
||||
class ITextureSource;
|
||||
class PartialMeshBuffer;
|
||||
|
||||
namespace scene
|
||||
{
|
||||
|
|
|
@ -14,10 +14,7 @@
|
|||
class ClientEnvironment;
|
||||
class ITextureSource;
|
||||
class Client;
|
||||
class IGameDef;
|
||||
class LocalPlayer;
|
||||
struct ItemStack;
|
||||
class WieldMeshSceneNode;
|
||||
|
||||
namespace scene
|
||||
{
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "irrlichttypes_bloated.h"
|
||||
class ClientEnvironment;
|
||||
|
||||
class ClientSimpleObject
|
||||
{
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
#include <IMeshBuffer.h>
|
||||
#include <CMeshBuffer.h>
|
||||
|
||||
class Settings;
|
||||
struct ToolCapabilities;
|
||||
|
||||
std::unordered_map<u16, ClientActiveObject::Factory> ClientActiveObject::m_types;
|
||||
|
|
|
@ -22,10 +22,10 @@ namespace scene {
|
|||
class IBillboardSceneNode;
|
||||
}
|
||||
|
||||
class Camera;
|
||||
class Client;
|
||||
struct Nametag;
|
||||
struct MinimapMarker;
|
||||
class WieldMeshSceneNode;
|
||||
|
||||
/*
|
||||
SmoothTranslator and other helpers
|
||||
|
|
|
@ -12,5 +12,7 @@ namespace scene
|
|||
class ISceneManager;
|
||||
}
|
||||
|
||||
class ClientEnvironment;
|
||||
|
||||
ClientSimpleObject* createSmokePuff(scene::ISceneManager *smgr,
|
||||
ClientEnvironment *env, v3f pos, v2f size);
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
class InputHandler;
|
||||
class ChatBackend;
|
||||
class RenderingEngine;
|
||||
struct SubgameSpec;
|
||||
struct GameStartData;
|
||||
|
||||
struct Jitter {
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
class Client;
|
||||
class RenderingEngine;
|
||||
class InputHandler;
|
||||
class ISoundManager;
|
||||
class GUIFormSpecMenu;
|
||||
|
||||
/*
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
namespace video
|
||||
{
|
||||
class IVideoDriver;
|
||||
class IImage;
|
||||
}
|
||||
|
||||
|
|
|
@ -14,8 +14,6 @@ class Client;
|
|||
class Environment;
|
||||
class GenericCAO;
|
||||
class ClientActiveObject;
|
||||
class ClientEnvironment;
|
||||
class IGameDef;
|
||||
struct CollisionInfo;
|
||||
struct collisionMoveResult;
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ class ITextureSource;
|
|||
*/
|
||||
|
||||
|
||||
class MapBlock;
|
||||
struct MinimapMapblock;
|
||||
|
||||
struct MeshMakeData
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
#include <memory>
|
||||
#include <unordered_map>
|
||||
|
||||
class MapBlock;
|
||||
|
||||
struct QueuedMeshUpdate
|
||||
{
|
||||
v3s16 p = v3s16(-1337, -1337, -1337);
|
||||
|
|
|
@ -11,12 +11,9 @@
|
|||
class IrrlichtDevice;
|
||||
|
||||
class ShadowRenderer;
|
||||
class Camera;
|
||||
class Client;
|
||||
class Hud;
|
||||
class Minimap;
|
||||
class RenderPipeline;
|
||||
class RenderTarget;
|
||||
|
||||
class RenderingCore
|
||||
{
|
||||
|
|
|
@ -27,11 +27,8 @@ struct VideoDriverInfo {
|
|||
};
|
||||
|
||||
class ITextureSource;
|
||||
class Camera;
|
||||
class Client;
|
||||
class LocalPlayer;
|
||||
class Hud;
|
||||
class Minimap;
|
||||
|
||||
class RenderingCore;
|
||||
|
||||
|
|
|
@ -22,11 +22,9 @@ namespace scene
|
|||
}
|
||||
|
||||
|
||||
|
||||
struct ItemStack;
|
||||
class Client;
|
||||
class ITextureSource;
|
||||
struct ContentFeatures;
|
||||
class ShadowRenderer;
|
||||
|
||||
/*
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include "irrlichttypes_bloated.h"
|
||||
#include <vector>
|
||||
|
||||
class Map;
|
||||
class IGameDef;
|
||||
class Environment;
|
||||
class ActiveObject;
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
class Settings;
|
||||
|
||||
struct SubgameSpec
|
||||
{
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
class Settings;
|
||||
|
||||
/**
|
||||
* initialize basic default settings
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
infostream << "EmergeThread: " x << std::endl; \
|
||||
}
|
||||
|
||||
class EmergeManager;
|
||||
class EmergeThread;
|
||||
class NodeDefManager;
|
||||
class Settings;
|
||||
class MapSettingsManager;
|
||||
class BiomeManager;
|
||||
class OreManager;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <IGUIEnvironment.h>
|
||||
|
||||
|
||||
class ISimpleTextureSource;
|
||||
|
||||
class GUIAnimatedImage : public gui::IGUIElement {
|
||||
public:
|
||||
|
|
|
@ -40,7 +40,6 @@ struct image_definition {
|
|||
class GUIEngine;
|
||||
class RenderingEngine;
|
||||
class MainMenuScripting;
|
||||
class IWritableShaderSource;
|
||||
struct MainMenuData;
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
|
@ -20,7 +20,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#include "modalMenu.h"
|
||||
#include <string>
|
||||
|
||||
class Client;
|
||||
class ISimpleTextureSource;
|
||||
|
||||
class GUIOpenURLMenu : public GUIModalMenu
|
||||
|
|
|
@ -25,10 +25,6 @@ namespace gui
|
|||
class IGUIImage;
|
||||
class IGUIStaticText;
|
||||
}
|
||||
namespace video
|
||||
{
|
||||
class IVideoDriver;
|
||||
}
|
||||
|
||||
class ISimpleTextureSource;
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "util/pointedthing.h"
|
||||
|
||||
struct ToolCapabilities;
|
||||
struct ItemDefinition;
|
||||
|
||||
/*
|
||||
Base item definition
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
|
||||
#include <optional>
|
||||
|
||||
class Inventory;
|
||||
class IItemDefManager;
|
||||
|
||||
class ItemStackMetadata : public SimpleMetadata
|
||||
{
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
class MapSector;
|
||||
class NodeMetadata;
|
||||
class IGameDef;
|
||||
class IRollbackManager;
|
||||
|
||||
/*
|
||||
MapEditEvent
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#define MGCARPATHIAN_CAVERNS 0x01
|
||||
#define MGCARPATHIAN_RIVERS 0x02
|
||||
|
||||
class BiomeManager;
|
||||
|
||||
extern const FlagDesc flagdesc_mapgen_carpathian[];
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
#define MGFLAT_HILLS 0x02
|
||||
#define MGFLAT_CAVERNS 0x04
|
||||
|
||||
class BiomeManager;
|
||||
|
||||
extern const FlagDesc flagdesc_mapgen_flat[];
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
///////////// Mapgen Fractal flags
|
||||
#define MGFRACTAL_TERRAIN 0x01
|
||||
|
||||
class BiomeManager;
|
||||
|
||||
extern const FlagDesc flagdesc_mapgen_fractal[];
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
///////// Mapgen V5 flags
|
||||
#define MGV5_CAVERNS 0x01
|
||||
|
||||
class BiomeManager;
|
||||
|
||||
extern const FlagDesc flagdesc_mapgen_v5[];
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#define MGV7_CAVERNS 0x08
|
||||
#define MGV7_BIOMEREPEAT 0x10 // Now unused
|
||||
|
||||
class BiomeManager;
|
||||
|
||||
extern const FlagDesc flagdesc_mapgen_v7[];
|
||||
|
||||
|
|
|
@ -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[];
|
||||
|
|
|
@ -11,9 +11,7 @@
|
|||
|
||||
class Map;
|
||||
class ServerMap;
|
||||
class Mapgen;
|
||||
class MMVManip;
|
||||
class PseudoRandom;
|
||||
class NodeResolver;
|
||||
class Server;
|
||||
|
||||
|
|
|
@ -147,7 +147,6 @@ private:
|
|||
};
|
||||
|
||||
struct MapNode;
|
||||
class NodeMetadata;
|
||||
|
||||
enum LeavesStyle {
|
||||
LEAVES_FANCY,
|
||||
|
|
|
@ -137,9 +137,7 @@ enum CameraMode {
|
|||
|
||||
extern const struct EnumString es_CameraMode[];
|
||||
|
||||
class Map;
|
||||
struct HudElement;
|
||||
class Environment;
|
||||
|
||||
class Player
|
||||
{
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
class Map;
|
||||
class IGameDef;
|
||||
struct MapNode;
|
||||
class InventoryManager;
|
||||
|
||||
struct RollbackNode
|
||||
|
|
|
@ -51,7 +51,6 @@ struct DigParams;
|
|||
struct HitParams;
|
||||
struct EnumString;
|
||||
struct NoiseParams;
|
||||
class Schematic;
|
||||
class ServerActiveObject;
|
||||
struct collisionMoveResult;
|
||||
namespace treegen { struct TreeDef; }
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
struct PointedThing;
|
||||
struct ItemStack;
|
||||
class ServerActiveObject;
|
||||
struct ItemDefinition;
|
||||
class LuaItemStack;
|
||||
class ModApiItem;
|
||||
class InventoryList;
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#include "inventory.h"
|
||||
#include "inventorymanager.h"
|
||||
|
||||
class RemotePlayer;
|
||||
|
||||
/*
|
||||
InvRef
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
#include "lua_api/l_base.h"
|
||||
|
||||
class AsyncEngine;
|
||||
|
||||
/** Implementation of lua api support for mainmenu */
|
||||
class ModApiMainMenu: public ModApiBase
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
#include "lua_api/l_base.h"
|
||||
|
||||
class AsyncEngine;
|
||||
|
||||
class ModApiUtil : public ModApiBase
|
||||
{
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include "lua_api/l_base.h"
|
||||
|
||||
class Map;
|
||||
class MapBlock;
|
||||
class MMVManip;
|
||||
|
||||
/*
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
#include "util/numeric.h"
|
||||
#include "util/metricsbackend.h"
|
||||
|
||||
class IGameDef;
|
||||
struct GameParams;
|
||||
class RemotePlayer;
|
||||
class PlayerDatabase;
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
class Settings;
|
||||
class MapDatabase;
|
||||
class IRollbackManager;
|
||||
class EmergeManager;
|
||||
class ServerEnvironment;
|
||||
struct BlockMakeData;
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include <map>
|
||||
#include <optional>
|
||||
|
||||
struct ItemDefinition;
|
||||
class IItemDefManager;
|
||||
|
||||
/*
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include "inventory.h"
|
||||
#include "server/serverinventorymgr.h"
|
||||
|
||||
class ServerEnvironment;
|
||||
|
||||
class MockInventoryManager : public ServerInventoryManager
|
||||
{
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include <string>
|
||||
#include <array>
|
||||
|
||||
class ServerEnvironment;
|
||||
|
||||
/**
|
||||
* A global unique identifier.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue