Skip to content

Commit

Permalink
Remove dead code.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://jay/var/svn/wolf/trunk@158 32837ae5-38f0-4cfd-8401-3ff76d8497c4
  • Loading branch information
paul committed Jul 5, 2008
1 parent bef56f2 commit a5ee03f
Show file tree
Hide file tree
Showing 18 changed files with 103 additions and 57 deletions.
3 changes: 2 additions & 1 deletion Makefile
Expand Up @@ -21,7 +21,8 @@ OBJS = objs.o misc.o id_ca.o id_vh.o id_us.o \
wl_inter.o wl_menu.o wl_play.o wl_state.o wl_main.o \
wl_debug.o vi_comm.o tables.o mapheaders.o pagemap.c \
grstarts.o pictable.o pal4bit.o \
sprites.o walls.o mapdata.o net.o
sprites.o walls.o mapdata.o
# net.o
# romchunk.o
ROBJS = wl_draw.o
SOBJS = $(OBJS) $(ROBJS) vi_svga.o
Expand Down
1 change: 0 additions & 1 deletion build_pagemap.c
Expand Up @@ -13,7 +13,6 @@ int main()
fread(header, 2, 3, f);

printf("#include \"wl_def.h\"\n");
printf("const myint ChunksInFile = %d;\n", header[0]);
printf("const myint PMSpriteStart = %d;\n", header[1]);
#ifdef ENABLE_AUDIO
printf("const myint PMSoundStart = %d;\n", header[2]);
Expand Down
8 changes: 8 additions & 0 deletions id_ca.c
Expand Up @@ -523,6 +523,7 @@ void CA_Startup()
mapon = -1;
}

#ifndef EMBEDDED
/*
======================
=
Expand All @@ -545,6 +546,7 @@ void CA_Shutdown()
CloseRead(audiohandle);
#endif
}
#endif

/* ======================================================================== */

Expand Down Expand Up @@ -695,12 +697,14 @@ memptr CA_GetChunk(myint chunk)
}
#endif

#ifndef EMBEDDED
void CA_UnCacheGrChunk(myint chunk)
{
}
void CA_CacheGrChunk(myint chunk)
{
}
#endif

/* ======================================================================== */

Expand Down Expand Up @@ -780,9 +784,11 @@ void MM_Startup()
pool_offset = 0;
}

#ifndef EMBEDDED
void MM_Shutdown()
{
}
#endif

memptr MM_AllocPool(pool_id *id, unsigned long size)
{
Expand Down Expand Up @@ -967,8 +973,10 @@ static void PML_ClosePageFile()
memptr PM_GetPage(myint pagenum)
{
memptr addr;
#ifndef EMBEDDED
if (pagenum >= ChunksInFile)
Quit("PM_GetPage: Invalid page request");
#endif

if (PageAddr[pagenum])
return MM_PoolPtr(PageAddr[pagenum]);
Expand Down
2 changes: 1 addition & 1 deletion id_ca.h
Expand Up @@ -81,7 +81,7 @@ typedef struct {
} PageListStruct;

#ifdef ENABLE_PRECOMPILE
extern const myint ChunksInFile, PMSpriteStart, PMSoundStart;
extern const myint PMSpriteStart, PMSoundStart;
extern const PageListStruct PMPages[];
extern pool_id PageAddr[];
extern const uint32_t grstarts[NUMCHUNKS + 1];
Expand Down
4 changes: 3 additions & 1 deletion id_us.c
Expand Up @@ -8,9 +8,11 @@ typedef struct {
Point ul, lr;
} Rect;

#ifndef EMBEDDED
// Global variables
word PrintX,PrintY;
word WindowX,WindowY,WindowW,WindowH;
#endif

// Internal variables

Expand Down Expand Up @@ -46,6 +48,7 @@ void US_Startup()
}


#ifndef EMBEDDED
///////////////////////////////////////////////////////////////////////////
//
// US_Shutdown() - Shuts down the User Mgr
Expand All @@ -59,7 +62,6 @@ void US_Shutdown()
US_Started = false;
}

#ifndef EMBEDDED
// Window/Printing routines

///////////////////////////////////////////////////////////////////////////
Expand Down
10 changes: 7 additions & 3 deletions id_vh.c
Expand Up @@ -8,14 +8,15 @@ myint px, py;
byte fontcolor, backcolor;
myint fontnumber;

#ifndef LUMINARY
myint xfrac, yfrac;

boolean screenfaded;

#ifndef SKIPFADE
static byte palette1[256][3], palette2[256][3];
#endif

myint xfrac, yfrac;

/* ======================================================================== */

#ifndef SKIPFADE
Expand Down Expand Up @@ -82,7 +83,6 @@ void VL_FadeOut(myint start, myint end, myint red, myint green, myint blue, myin
screenfaded = true;
}

#ifndef LUMINARY
/*
=================
=
Expand Down Expand Up @@ -425,11 +425,15 @@ void VW_Startup()
{
VL_Startup();

#ifndef EMBEDDED
xfrac = (vwidth << 16) / 320;
yfrac = (vheight << 16) / 200;
#endif
}

#ifndef EMBEDDED
void VW_Shutdown()
{
VL_Shutdown();
}
#endif
3 changes: 2 additions & 1 deletion luminary-crt0.S
Expand Up @@ -97,7 +97,8 @@ __isr_vectors:
.word isr_handler /*39*/
.word isr_handler /*40*/
.word isr_handler /*41*/
.word ethernet_isr /*42*/
.word isr_handler /*42*/
/*.word ethernet_isr *//*42*/
.word isr_handler /*43*/
.word isr_handler /*44*/
.word isr_handler /*45*/
Expand Down
2 changes: 1 addition & 1 deletion misc.c
Expand Up @@ -154,6 +154,7 @@ unsigned long sleepuntil(unsigned long t)
return now;
}

#ifndef EMBEDDED
long filelength(myint handle)
{
#ifdef __linux__
Expand All @@ -170,7 +171,6 @@ long filelength(myint handle)
#endif
}

#ifndef EMBEDDED
char *itoa(myint value, char *string, myint radix)
{
return ltoa(value, string, radix);
Expand Down
2 changes: 1 addition & 1 deletion sd_null.c
Expand Up @@ -6,7 +6,6 @@ boolean AdLibPresent, SoundBlasterPresent;
SDMode SoundMode;
SMMode MusicMode;
SDSMode DigiMode;
#endif

void SD_SetDigiDevice(SDSMode mode)
{
Expand Down Expand Up @@ -128,3 +127,4 @@ void PlaySoundLocGlobal(word s, myint id, fixed gx,fixed gy)
void UpdateSoundLoc(fixed x, fixed y, myint angle)
{
}
#endif
8 changes: 0 additions & 8 deletions vi_bare.c
Expand Up @@ -237,14 +237,6 @@ void VL_Startup()
#endif
}

void VL_Shutdown()
{
}

void VL_WaitVBL(int i)
{
}

void VW_UpdateScreen()
{
#ifdef LUMINARY
Expand Down
4 changes: 4 additions & 0 deletions vi_comm.c
Expand Up @@ -175,6 +175,7 @@ static void INL_StartKbd(void)
IN_ClearKeysDown();
}

#ifndef EMBEDDED
///////////////////////////////////////////////////////////////////////////
//
// INL_ShutKbd() - Restores keyboard control to the BIOS
Expand All @@ -192,6 +193,7 @@ static void INL_ShutKbd(void)
static void INL_ShutMouse(void)
{
}
#endif

#ifdef ENABLE_JOYSTICK
///////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -253,6 +255,7 @@ void IN_Startup(void)
IN_Started = true;
}

#ifndef EMBEDDED
///////////////////////////////////////////////////////////////////////////
//
// IN_Shutdown() - Shuts down the Input Mgr
Expand All @@ -276,6 +279,7 @@ void IN_Shutdown(void)

IN_Started = false;
}
#endif

///////////////////////////////////////////////////////////////////////////
//
Expand Down
2 changes: 2 additions & 0 deletions wl_act2.c
Expand Up @@ -2415,6 +2415,7 @@ void T_BJDone(objtype *ob)
//===========================================================================


#ifndef EMBEDDED
/*
===============
=
Expand Down Expand Up @@ -2445,6 +2446,7 @@ boolean CheckPosition(objtype *ob)

return true;
}
#endif


/*
Expand Down
11 changes: 10 additions & 1 deletion wl_def.h
Expand Up @@ -708,12 +708,21 @@ typedef enum PACKED {

extern char str[80], str2[20];

extern myint viewwidth, viewheight;
#ifdef EMBEDDED
#define viewwidth 128
#define sviewheight 64
#define xoffset 0
#define yoffset 0
#define centerx (viewwidth/2-1)
#define shootdelta (viewwidth/10)
#else
extern myint viewwidth, sviewheight;
extern myint viewwidthwin, viewheightwin;
extern myint xoffset, yoffset;

extern myint centerx;
extern myint shootdelta;
#endif

extern boolean startgame,loadedgame;
extern myint mouseadjustment;
Expand Down

0 comments on commit a5ee03f

Please sign in to comment.