From a47cbe621febe11586f22c28a4507d74930d1737 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 9 Jul 2007 19:14:34 +0000 Subject: ioctl removs some dumb stuff... --- mpq-bios.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'mpq-bios.c') diff --git a/mpq-bios.c b/mpq-bios.c index bcea83d..abac013 100644 --- a/mpq-bios.c +++ b/mpq-bios.c @@ -56,8 +56,6 @@ typedef struct { uint32_t file_block_index; } hash_t; -/* Defined in int-bios.h - typedef struct { uint64_t block_offset; uint32_t block_size; @@ -65,8 +63,6 @@ typedef struct { uint32_t flags; } block_t; -*/ - struct mpq_archive_t { int fd; int closeit; @@ -340,13 +336,6 @@ int mpqlib_find_hash_entry_by_hash(struct mpq_archive_t * mpq_a, uint32_t hA, ui return -1; } -const block_t * __mpqlib_get_block_entry(struct mpq_archive_t * mpq_a, int entry) { - if ((entry >= mpq_a->block_table_entries) || (entry < 0)) - return NULL; - - return mpq_a->blocks + entry; -} - int __mpqlib_seek(struct mpq_archive_t * mpq_a, off_t off) { if (lseek64(mpq_a->fd, off, SEEK_SET) != off) return 0; -- cgit v1.2.3