Skip to content

Commit

Permalink
Removed unnecessary void parameters.
Browse files Browse the repository at this point in the history
Only relevant in C code, not C++.
  • Loading branch information
afritz1 committed Apr 10, 2018
1 parent 0079442 commit a61ad81
Show file tree
Hide file tree
Showing 44 changed files with 94 additions and 94 deletions.
2 changes: 1 addition & 1 deletion BloodXL/BloodXL_Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ BloodXL_Game::BloodXL_Game(const XLEngine_Plugin_API *API)
}
}

BloodXL_Game::~BloodXL_Game(void)
BloodXL_Game::~BloodXL_Game()
{
if ( m_Player )
{
Expand Down
2 changes: 1 addition & 1 deletion BloodXL/BloodXL_Game.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class BloodXL_Game
{
public:
BloodXL_Game(const XLEngine_Plugin_API *API);
~BloodXL_Game(void);
~BloodXL_Game();

void FixedUpdate();
void VariableUpdate(float dt);
Expand Down
2 changes: 1 addition & 1 deletion BloodXL/BloodXL_Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ BloodXL_Player::BloodXL_Player(const XLEngine_Plugin_API *API)
m_bPassthruAdjoins = false;
}

BloodXL_Player::~BloodXL_Player(void)
BloodXL_Player::~BloodXL_Player()
{
}

Expand Down
2 changes: 1 addition & 1 deletion BloodXL/BloodXL_Player.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class BloodXL_Player
{
public:
BloodXL_Player(const XLEngine_Plugin_API *API);
~BloodXL_Player(void);
~BloodXL_Player();

void SetPassthruAdjoins(bool bPassthru) { m_bPassthruAdjoins = bPassthru; }
void KeyDown(int32_t key);
Expand Down
2 changes: 1 addition & 1 deletion DaggerXL/DaggerXL_Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ DaggerXL_Game::DaggerXL_Game(const XLEngine_Plugin_API *API)
s_pGamePtr = this;
}

DaggerXL_Game::~DaggerXL_Game(void)
DaggerXL_Game::~DaggerXL_Game()
{
if ( m_Player )
{
Expand Down
2 changes: 1 addition & 1 deletion DaggerXL/DaggerXL_Game.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class DaggerXL_Game
{
public:
DaggerXL_Game(const XLEngine_Plugin_API *API);
~DaggerXL_Game(void);
~DaggerXL_Game();

void FixedUpdate();
void VariableUpdate(float dt);
Expand Down
2 changes: 1 addition & 1 deletion DaggerXL/DaggerXL_Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ DaggerXL_Player::DaggerXL_Player(const XLEngine_Plugin_API *API)
m_bAutoMove = false;
}

DaggerXL_Player::~DaggerXL_Player(void)
DaggerXL_Player::~DaggerXL_Player()
{
}

Expand Down
2 changes: 1 addition & 1 deletion DaggerXL/DaggerXL_Player.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class DaggerXL_Player
{
public:
DaggerXL_Player(const XLEngine_Plugin_API *API);
~DaggerXL_Player(void);
~DaggerXL_Player();

void KeyDown(int32_t key);

Expand Down
2 changes: 1 addition & 1 deletion DaggerXL/Logic_Door.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Logic_Door::Logic_Door(const XLEngine_Plugin_API *API)
m_pAPI->Logic_CreateFromCode("LOGIC_DOOR", this, funcs);
}

Logic_Door::~Logic_Door(void)
Logic_Door::~Logic_Door()
{
}

Expand Down
2 changes: 1 addition & 1 deletion DaggerXL/Logic_Door.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Logic_Door
{
public:
Logic_Door(const XLEngine_Plugin_API *API);
~Logic_Door(void);
~Logic_Door();

private:
const XLEngine_Plugin_API *m_pAPI;
Expand Down
4 changes: 2 additions & 2 deletions DaggerXL/Logic_NPC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ bool NPC::IsEnabled()
return m_Data.uState!=NPC_STATE_DISABLED;
}

NPC::~NPC(void)
NPC::~NPC()
{
}

Expand All @@ -111,7 +111,7 @@ Logic_NPC::Logic_NPC(const XLEngine_Plugin_API *API)
m_pAPI->Logic_CreateFromCode("LOGIC_NPC", this, funcs);
}

Logic_NPC::~Logic_NPC(void)
Logic_NPC::~Logic_NPC()
{
}

Expand Down
4 changes: 2 additions & 2 deletions DaggerXL/Logic_NPC.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Logic_NPC
{
public:
Logic_NPC(const XLEngine_Plugin_API *API);
~Logic_NPC(void);
~Logic_NPC();

private:
const XLEngine_Plugin_API *m_pAPI;
Expand All @@ -26,7 +26,7 @@ class NPC
{
public:
NPC(const XLEngine_Plugin_API *pAPI);
~NPC(void);
~NPC();

void Reset(const XLEngine_Plugin_API *pAPI, int32_t NPC_file, float x, float y, float z, int32_t worldX, int32_t worldY, float dirx=0.0f, float diry=1.0f);
void Enable(const XLEngine_Plugin_API *pAPI, bool bEnable);
Expand Down
2 changes: 1 addition & 1 deletion DaggerXL/Logic_Obj_Action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Logic_Obj_Action::Logic_Obj_Action(const XLEngine_Plugin_API *API)
m_pAPI->Logic_CreateFromCode("LOGIC_OBJ_ACTION", this, funcs);
}

Logic_Obj_Action::~Logic_Obj_Action(void)
Logic_Obj_Action::~Logic_Obj_Action()
{
}

Expand Down
2 changes: 1 addition & 1 deletion DaggerXL/Logic_Obj_Action.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Logic_Obj_Action
{
public:
Logic_Obj_Action(const XLEngine_Plugin_API *API);
~Logic_Obj_Action(void);
~Logic_Obj_Action();

private:
const XLEngine_Plugin_API *m_pAPI;
Expand Down
2 changes: 1 addition & 1 deletion DarkXL/DarkXL_Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ DarkXL_Game::DarkXL_Game(const XLEngine_Plugin_API *API)
CutscenePlayer::Init(API);
}

DarkXL_Game::~DarkXL_Game(void)
DarkXL_Game::~DarkXL_Game()
{
}

Expand Down
2 changes: 1 addition & 1 deletion DarkXL/DarkXL_Game.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class DarkXL_Game
{
public:
DarkXL_Game(const XLEngine_Plugin_API *API);
~DarkXL_Game(void);
~DarkXL_Game();

void FixedUpdate();
void VariableUpdate(float dt);
Expand Down
8 changes: 4 additions & 4 deletions Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ void Game_SetGameData(const char *pszName, int versionMajor, int versionMinor)
TextureCache::SetPath( szGameDir );
}

void Game_LoadWorldMap(void)
void Game_LoadWorldMap()
{
WorldMap::Load();
}
Expand All @@ -506,12 +506,12 @@ void Engine::Engine_SetCameraData(float *pos, float *dir, float fSkew, float fSp
pCamera->SetSector( uSector );
}

XL_BOOL Engine::Engine_AllowPlayerControls(void)
XL_BOOL Engine::Engine_AllowPlayerControls()
{
return (XL_Console::IsActive() == true || XL_Console::IsChatActive() == true ) ? false : true;
}

void UnloadAllWorldCells(void)
void UnloadAllWorldCells()
{
m_pEngineForAPI->GetWorld()->UnloadWorldCells();
}
Expand Down Expand Up @@ -695,7 +695,7 @@ void Engine::SetupPluginAPI()
m_pPluginAPI->SetColormap = TextureLoader::SetColormap;
//World
m_pPluginAPI->World_CreateTerrain = World_CreateTerrain;
m_pPluginAPI->World_UnloadAllCells = UnloadAllWorldCells; //void World_UnloadAllCells(void);
m_pPluginAPI->World_UnloadAllCells = UnloadAllWorldCells; //void World_UnloadAllCells();
m_pPluginAPI->World_LoadCell = LoadWorldCell; //void World_LoadCell(uint32_t cellType, uint32_t archiveType, const char *pszArchive, const char *pszFile, int32_t worldX, int32_t worldY);
m_pPluginAPI->World_Collide = World_Collide;
m_pPluginAPI->World_Activate = World_Activate;
Expand Down
2 changes: 1 addition & 1 deletion Engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Engine
static bool m_bContinueLoop;

static void Engine_SetCameraData(float *pos, float *dir, float fSkew, float fSpeed, uint32_t uSector);
static XL_BOOL Engine_AllowPlayerControls(void);
static XL_BOOL Engine_AllowPlayerControls();
static void Object_GetCameraVector(uint32_t uObjID, float& x, float& y, float& z);
private:
void Destroy();
Expand Down
2 changes: 1 addition & 1 deletion OutlawsXL/OutlawsXL_Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ OutlawsXL_Game::OutlawsXL_Game(const XLEngine_Plugin_API *API)
m_Player = xlNew OutlawsXL_Player(API);
}

OutlawsXL_Game::~OutlawsXL_Game(void)
OutlawsXL_Game::~OutlawsXL_Game()
{
if ( m_Player )
{
Expand Down
2 changes: 1 addition & 1 deletion OutlawsXL/OutlawsXL_Game.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class OutlawsXL_Game
{
public:
OutlawsXL_Game(const XLEngine_Plugin_API *API);
~OutlawsXL_Game(void);
~OutlawsXL_Game();

void FixedUpdate();
void VariableUpdate(float dt);
Expand Down
2 changes: 1 addition & 1 deletion OutlawsXL/OutlawsXL_Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ OutlawsXL_Player::OutlawsXL_Player(const XLEngine_Plugin_API *API)
m_bPassthruAdjoins = false;
}

OutlawsXL_Player::~OutlawsXL_Player(void)
OutlawsXL_Player::~OutlawsXL_Player()
{
}

Expand Down
2 changes: 1 addition & 1 deletion OutlawsXL/OutlawsXL_Player.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class OutlawsXL_Player
{
public:
OutlawsXL_Player(const XLEngine_Plugin_API *API);
~OutlawsXL_Player(void);
~OutlawsXL_Player();

void SetPassthruAdjoins(bool bPassthru) { m_bPassthruAdjoins = bPassthru; }

Expand Down
4 changes: 2 additions & 2 deletions PluginAPI_Func.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

//Input, implemented in Input.cpp
extern int32_t Input_IsKeyDown(int32_t key);
extern float Input_GetMousePosX(void);
extern float Input_GetMousePosY(void);
extern float Input_GetMousePosX();
extern float Input_GetMousePosY();
extern int32_t Input_AddKeyDownCB(Input_KeyDownCB pCB, int32_t nFlags);
extern int32_t Input_AddCharDownCB(Input_KeyDownCB pCB);

Expand Down
2 changes: 1 addition & 1 deletion fileformats/LFD_Anim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ LFD_Anim::LFD_Anim(IDriver3D *pDriver)
m_pDriver = pDriver;
}

LFD_Anim::~LFD_Anim(void)
LFD_Anim::~LFD_Anim()
{
Destroy();
}
Expand Down
2 changes: 1 addition & 1 deletion fileformats/LFD_Anim.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class LFD_Anim
{
public:
LFD_Anim(IDriver3D *pDriver);
~LFD_Anim(void);
~LFD_Anim();
void Destroy();

static bool LoadPLTT(char *pData, int32_t len);
Expand Down
4 changes: 2 additions & 2 deletions math/Matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ class Matrix

float m[16];

Matrix(void) {;}
Matrix() {;}
Matrix(int32_t identity)
{
if ( identity )
{
Identity();
}
}
~Matrix(void) {;}
~Matrix() {;}

void ProjPersp(float fov, float aspect, float fZNear=0.1f, float fZFar=1000.0f, float fSkew=0.0f);
void ProjOrtho(float w, float h, float zMin=0.1f, float zMax=1000.0f);
Expand Down
4 changes: 2 additions & 2 deletions math/Vector2.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
class Vector2
{
public:
Vector2(void) { x = 0.0f; y = 0.0f; }
Vector2() { x = 0.0f; y = 0.0f; }
Vector2(float _x, float _y) { x = _x; y = _y; }
~Vector2(void) {;}
~Vector2() {;}

float Normalize();
float Length()
Expand Down
4 changes: 2 additions & 2 deletions math/Vector3.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
class Vector3
{
public:
Vector3(void) { x = 0.0f; y = 0.0f; z = 0.0f; }
Vector3() { x = 0.0f; y = 0.0f; z = 0.0f; }
Vector3(float _x, float _y, float _z) { x = _x; y = _y; z = _z; }
~Vector3(void) {;}
~Vector3() {;}

float Length()
{
Expand Down
4 changes: 2 additions & 2 deletions math/Vector4.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
class Vector4
{
public:
Vector4(void) { x = 0.0f; y = 0.0f; z = 0.0f; w = 0.0f; }
Vector4() { x = 0.0f; y = 0.0f; z = 0.0f; w = 0.0f; }
Vector4(float _x, float _y, float _z, float _w) { x = _x; y = _y; z = _z; w = _w; }
~Vector4(void) {;}
~Vector4() {;}

float Normalize();
float Normalize3();
Expand Down
2 changes: 1 addition & 1 deletion movieplayback/MovieManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ int32_t MovieManager::UpdateMovie()
return 0;
}

void MovieManager::StopMovie(void)
void MovieManager::StopMovie()
{
if ( m_pCurPlayer )
{
Expand Down
2 changes: 1 addition & 1 deletion movieplayback/MovieManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MovieManager
static void SetPlayerArchives(uint32_t uArchiveType, const char *pszArchive0, const char *pszArchive1);
static int32_t StartMovie(const char *pszFile, uint32_t uFlags, int32_t nSpeed);
static int32_t UpdateMovie();
static void StopMovie(void);
static void StopMovie();
static void RenderMovie(float fDeltaTime);

private:
Expand Down
4 changes: 2 additions & 2 deletions os/Input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ int32_t Input_IsKeyDown(int32_t key)
return Input::IsKeyDown(key) ? 1 : 0;
}

float Input_GetMousePosX(void)
float Input_GetMousePosX()
{
return Input::GetMouseX();
}

float Input_GetMousePosY(void)
float Input_GetMousePosY()
{
return Input::GetMouseY();
}
Expand Down
Loading

0 comments on commit a61ad81

Please sign in to comment.