* grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused

function.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-03-10 14:27:04 +01:00
parent 81455e8e7a
commit fc3ff2a2ad
3 changed files with 5 additions and 25 deletions

View file

@ -1,3 +1,8 @@
2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
function.
2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
* grub-core/fs/iso9660.c (add_part): Remove always_inline attribute

View file

@ -322,24 +322,3 @@ grub_fshelp_read_file (grub_disk_t disk, grub_fshelp_node_t node,
return len;
}
unsigned int
grub_fshelp_log2blksize (unsigned int blksize, unsigned int *pow)
{
int mod;
*pow = 0;
while (blksize > 1)
{
mod = blksize - ((blksize >> 1) << 1);
blksize >>= 1;
/* Check if it really is a power of two. */
if (mod)
return grub_error (GRUB_ERR_BAD_NUMBER,
"the blocksize is not a power of two");
(*pow)++;
}
return GRUB_ERR_NONE;
}

View file

@ -77,8 +77,4 @@ EXPORT_FUNC(grub_fshelp_read_file) (grub_disk_t disk, grub_fshelp_node_t node,
grub_off_t filesize, int log2blocksize,
grub_disk_addr_t blocks_start);
unsigned int
EXPORT_FUNC(grub_fshelp_log2blksize) (unsigned int blksize,
unsigned int *pow);
#endif /* ! GRUB_FSHELP_HEADER */