commit 8c2100eaf0c60454a71daa879292ff95486adf29
parent 682cab4976ad367d532c5d47e73bab73ade40024
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 9 Nov 2015 14:29:23 +0100
Remove unused commented out code
Diffstat:
1 file changed, 0 insertions(+), 18 deletions(-)
diff --git a/addrom.c b/addrom.c
@@ -63,14 +63,6 @@ addrom(char *datfile, const Rom *rom)
*(uint64_t *)(datfile + pos) = MAGIC;
}
-/* not used
-static uint64_t
-getgamecount(int n)
-{
- return (n * 0x88888889) >> 32 >> 6;
-}
-*/
-
static uint32_t
setgamecount(uint64_t n)
{
@@ -161,12 +153,7 @@ main(int argc, char *argv[])
if (!(outbuf = calloc(outbufsize, 1)))
die("Can't allocate enough memory for reading input file\n");
-/*
- if (place * ENTRYSZ + HEADERSZ > infilesize)
- place = 0;
- offset = place ? HEADERSZ + (place - 1) * ENTRYSZ : infilesize;
-*/
if (place == 0 || place * ENTRYSZ + HEADERSZ > infilesize)
offset = infilesize;
else
@@ -193,11 +180,6 @@ main(int argc, char *argv[])
if (fclose(infile) == EOF)
die("There was an error while closing input file %s\n", in);
- /* already closed by fclose()
- if (close(infd) == -1)
- die("There was an error while closing input file %s\n", in);
- */
-
if (fclose(outfile) == EOF)
die("There was an error while closing output file %s\n", out);