From 169731aa1c760cdc8987789c40fd669890822f7d Mon Sep 17 00:00:00 2001 From: tantricity Date: Wed, 20 May 2009 18:12:27 +0000 Subject: [PATCH] remove unnecessary function git-svn-id: https://devkitpro.svn.sourceforge.net/svnroot/devkitpro/trunk/libfat@3508 258c5a1a-4f63-435d-9564-e8f6d34ab52c --- source/fatfile.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/source/fatfile.c b/source/fatfile.c index cbceec8..dcd10b1 100644 --- a/source/fatfile.c +++ b/source/fatfile.c @@ -340,34 +340,6 @@ int _FAT_close_r (struct _reent *r, int fd) { return ret; } -sec_t _FAT_Num_Sectors_To_Cache(CACHE* cache, FILE_POSITION position,PARTITION* partition) { - uint32_t limit; - uint32_t ra_start, ra_end, ra_sectors; - - - limit = cache->sectorsPerPage; - - ra_start = position.cluster; - ra_sectors = - position.sector; - - while (true) { - ra_end = ra_start; - ra_start = _FAT_fat_nextCluster(partition, ra_end); - - if (ra_start != ra_end + 1) - break; - - ra_sectors += partition->sectorsPerCluster; - - if (ra_sectors >= limit) - break; - } - if (ra_sectors > limit) ra_sectors = limit; - - return ra_sectors; - -} - ssize_t _FAT_read_r (struct _reent *r, int fd, char *ptr, size_t len) { FILE_STRUCT* file = (FILE_STRUCT*) fd; PARTITION* partition; -- 2.11.4.GIT