Skip to content

Commit

Permalink
libcommon|Cleanup: Removed some dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jul 13, 2012
1 parent c28d76b commit 37f00cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
5 changes: 2 additions & 3 deletions doomsday/plugins/common/include/hu_stuff.h
Expand Up @@ -92,7 +92,6 @@ extern patchid_t borderPatches[8];
void Hu_LoadData(void);
void Hu_Drawer(void);
void Hu_Ticker(void);
void HU_Start(int player);
void HU_WakeWidgets(int player);
void Hu_UnloadData(void);

Expand All @@ -117,8 +116,8 @@ void M_DrawShadowedPatch2(patchid_t id, int x, int y, int alignFlags,
void M_DrawShadowedPatch3(patchid_t id, int x, int y, int alignFlags, int patchFlags, float r, float g, float b, float a);

typedef enum {
PRM_NONE = 0, /// No replacement.
PRM_ALLOW_TEXT, /// Use a text replacement if found.
PRM_NONE = 0, ///< No replacement.
PRM_ALLOW_TEXT ///< Use a text replacement if found.
} patchreplacemode_t;

#define PRM_FIRST (PRM_NONE)
Expand Down
25 changes: 0 additions & 25 deletions doomsday/plugins/common/src/hu_stuff.c
Expand Up @@ -42,7 +42,6 @@
#include "r_common.h"

typedef struct {
boolean active;
int hideTics;
float alpha;
} scoreboardstate_t;
Expand Down Expand Up @@ -274,29 +273,6 @@ void Hu_UnloadData(void)
}
}

void HU_Stop(int player)
{
assert(player >= 0 && player < MAXPLAYERS);
{
scoreboardstate_t* ss = &scoreStates[player];
ss->active = false;
}
}

void HU_Start(int player)
{
assert(player >= 0 && player < MAXPLAYERS);
{
scoreboardstate_t* ss = &scoreStates[player];

ss = &scoreStates[player];
if(ss->active)
HU_Stop(player);

ss->active = true;
}
}

void HU_WakeWidgets(int player)
{
if(player < 0)
Expand All @@ -313,7 +289,6 @@ void HU_WakeWidgets(int player)
{
if(!players[player].plr->inGame) return;
ST_Start(player);
HU_Start(player);
}
}

Expand Down

0 comments on commit 37f00cd

Please sign in to comment.