Skip to content

Commit

Permalink
Removed unused forward declarations (cuberite#3888)
Browse files Browse the repository at this point in the history
  • Loading branch information
Seadragon91 authored and madmaxoft committed Aug 3, 2017
1 parent 2ef8a62 commit 0397535
Show file tree
Hide file tree
Showing 26 changed files with 2 additions and 102 deletions.
1 change: 0 additions & 1 deletion src/Bindings/LuaChunkStay.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@


// fwd:
class cPluginLua;
class cChunkMap;


Expand Down
1 change: 0 additions & 1 deletion src/Bindings/LuaState.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ extern "C"
class cLuaServerHandle;
class cLuaTCPLink;
class cLuaUDPEndpoint;
class cPluginLua;
class cDeadlockDetect;


Expand Down
6 changes: 0 additions & 6 deletions src/Bindings/PluginLua.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@



// fwd: "UI/Window.h"
class cWindow;





// tolua_begin
class cPluginLua :
Expand Down
1 change: 0 additions & 1 deletion src/Blocks/WorldInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class cItems;
typedef cItemCallback<cBlockEntity> cBlockEntityCallback;


class cMonster;
class cPlayer;


Expand Down
11 changes: 0 additions & 11 deletions src/Chunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,10 @@



namespace Json
{
class Value;
};





class cWorld;
class cClientHandle;
class cServer;
class cPlayer;
class cChunkMap;
class cBeaconEntity;
Expand All @@ -42,9 +34,6 @@ class cNoteEntity;
class cMobHeadEntity;
class cFlowerPotEntity;
class cBlockArea;
class cPawn;
class cPickup;
class cChunkDataSerializer;
class cBlockArea;
class cFluidSimulatorData;
class cMobCensus;
Expand Down
4 changes: 0 additions & 4 deletions src/ChunkMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@


class cWorld;
class cWorldInterface;
class cItem;
class cChunkStay;
class cChunk;
Expand All @@ -30,9 +29,6 @@ class cNoteEntity;
class cCommandBlockEntity;
class cMobHeadEntity;
class cFlowerPotEntity;
class cPawn;
class cPickup;
class cChunkDataSerializer;
class cBlockArea;
class cMobCensus;
class cMobSpawner;
Expand Down
4 changes: 0 additions & 4 deletions src/ClientHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,14 @@

// fwd:
class cChunkDataSerializer;
class cInventory;
class cMonster;
class cPawn;
class cExpOrb;
class cPainting;
class cPickup;
class cPlayer;
class cProtocol;
class cWindow;
class cFallingBlock;
class cItemHandler;
class cWorld;
class cCompositeChat;
class cStatManager;
class cClientHandle;
Expand Down
6 changes: 0 additions & 6 deletions src/Entities/FallingBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@



class cPlayer;
class cItem;





// tolua_begin

Expand Down
2 changes: 0 additions & 2 deletions src/HTTP/HTTPServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@


// fwd:
class cHTTPMessage;
class cHTTPRequestParser;
class cHTTPIncomingRequest;
class cHTTPServerConnection;

Expand Down
1 change: 0 additions & 1 deletion src/Inventory.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ namespace Json
class Value;
};

class cClientHandle;
class cPlayer;


Expand Down
1 change: 0 additions & 1 deletion src/Map.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
class cClientHandle;
class cWorld;
class cPlayer;
class cItemFrame;
class cMap;


Expand Down
6 changes: 0 additions & 6 deletions src/MobFamilyCollecter.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@



// fwd:
class cChunk;





/** This class is used to collect the list of mobs for each family
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Mobs/Monster.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class cClientHandle;
class cWorld;



// tolua_begin
Expand Down
3 changes: 1 addition & 2 deletions src/Protocol/Authenticator.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ class cSettingsRepositoryInterface;



// fwd: "cRoot.h"
class cRoot;


namespace Json
{
Expand Down
2 changes: 0 additions & 2 deletions src/Protocol/Protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ class cExpOrb;
class cPlayer;
class cEntity;
class cWindow;
class cInventory;
class cPawn;
class cPickup;
class cPainting;
class cWorld;
Expand Down
10 changes: 0 additions & 10 deletions src/Protocol/Protocol_1_8.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ Declares the 1.8 protocol classes:



// fwd:
namespace Json
{
class Value;
}





class cProtocol_1_8_0 :
public cProtocol
{
Expand Down
10 changes: 0 additions & 10 deletions src/Protocol/Protocol_1_9.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ Declares the 1.9 protocol classes:



// fwd:
namespace Json
{
class Value;
}





class cProtocol_1_9_0 :
public cProtocol
{
Expand Down
1 change: 0 additions & 1 deletion src/Root.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


// fwd:
class cThread;
class cMonsterConfig;
class cBrewingRecipes;
class cCraftingRecipes;
Expand Down
1 change: 0 additions & 1 deletion src/Server.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@


// fwd:
class cPlayer;
class cClientHandle;
typedef std::shared_ptr<cClientHandle> cClientHandlePtr;
typedef std::list<cClientHandlePtr> cClientHandlePtrs;
Expand Down
7 changes: 0 additions & 7 deletions src/Simulator/FloodyFluidSimulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@



// fwd:
class cBlockArea;





class cFloodyFluidSimulator :
public cDelayedFluidSimulator
{
Expand Down
1 change: 0 additions & 1 deletion src/Simulator/FluidSimulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "Simulator.h"


class cChunk;
class cWorld;


Expand Down
7 changes: 0 additions & 7 deletions src/Simulator/VanillaFluidSimulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@



// fwd:
class cBlockArea;





class cVanillaFluidSimulator :
public cFloodyFluidSimulator
{
Expand Down
8 changes: 0 additions & 8 deletions src/WebAdmin.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@



// fwd:
class cEvent;
class cWebPlugin;





// tolua_begin
struct HTTPFormData
{
Expand Down
2 changes: 0 additions & 2 deletions src/World.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ typedef std::shared_ptr<cClientHandle> cClientHandlePtr;
typedef std::list<cClientHandlePtr> cClientHandlePtrs;
typedef std::list<cClientHandle *> cClientHandles;
class cEntity;
class cBlockEntity;
class cWorldGenerator; // The generator that actually generates the chunks for a single world
class cChunkGenerator; // The thread responsible for generating chunks
class cBeaconEntity;
class cBrewingstandEntity;
Expand Down
4 changes: 0 additions & 4 deletions src/WorldStorage/NBTChunkSerializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ class cFlowerPotEntity;
class cFallingBlock;
class cMinecart;
class cMinecartWithChest;
class cMinecartWithFurnace;
class cMinecartWithTNT;
class cMinecartWithHopper;
class cMonster;
class cPickup;
class cItemGrid;
Expand All @@ -51,7 +48,6 @@ class cExpOrb;
class cHangingEntity;
class cItemFrame;
class cPainting;
class cEntityEffect;



Expand Down
2 changes: 0 additions & 2 deletions src/WorldStorage/WSSAnvil.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ class cItemGrid;

class cProjectileEntity;
class cHangingEntity;
class cWolf;
class cOcelot;



Expand Down

0 comments on commit 0397535

Please sign in to comment.