Skip to content

Commit

Permalink
Removed a bunch of unused variables that never bothered me before.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Plotkin committed Apr 30, 2011
1 parent 3a129d9 commit f39f455
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion heap.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ void heap_free(glui32 addr)
*/
int heap_get_summary(glui32 *valcount, glui32 **summary)
{
glui32 *arr, len, pos, lx;
glui32 *arr, len, pos;
heapblock_t *blo;

*valcount = 0;
Expand Down
11 changes: 3 additions & 8 deletions serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ static int undo_chain_size = 0;
static int undo_chain_num = 0;
unsigned char **undo_chain = NULL;

static glui32 protect_pos = 0;
static glui32 protect_len = 0;

static glui32 write_memstate(dest_t *dest);
static glui32 write_heapstate(dest_t *dest, int portable);
static glui32 write_stackstate(dest_t *dest, int portable);
Expand Down Expand Up @@ -810,9 +807,8 @@ static glui32 read_heapstate(dest_t *dest, glui32 chunklen, int portable,

static glui32 write_stackstate(dest_t *dest, int portable)
{
glui32 res, pos;
glui32 val, lx;
unsigned char ch;
glui32 res;
glui32 lx;
glui32 lastframe;

/* If we're storing for the purpose of undo, we don't need to do any
Expand Down Expand Up @@ -970,8 +966,7 @@ static glui32 write_stackstate(dest_t *dest, int portable)

static glui32 read_stackstate(dest_t *dest, glui32 chunklen, int portable)
{
glui32 res, pos;
unsigned char ch;
glui32 res;
glui32 frameend, frm, frm2, frm3, locpos, frlen, numlocals;

if (chunklen > stacksize)
Expand Down
4 changes: 2 additions & 2 deletions string.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ char *make_temp_string(glui32 addr)
{
int ix, len;
glui32 addr2;
char *res, *cx;
char *res;

if (Mem1(addr) != 0xE0)
fatal_error("String argument to a Glk call must be unencoded.");
Expand Down Expand Up @@ -849,7 +849,7 @@ glui32 *make_temp_ustring(glui32 addr)
{
int ix, len;
glui32 addr2;
glui32 *res, *cx;
glui32 *res;

if (Mem1(addr) != 0xE2)
fatal_error("Ustring argument to a Glk call must be unencoded.");
Expand Down

0 comments on commit f39f455

Please sign in to comment.