scsi_cd: Remove unused code.

This commit is contained in:
Augustin Cavalier
2021-12-08 12:25:09 -05:00
parent ca89fd65a6
commit fb25e7349d
@@ -655,20 +655,6 @@ read_cd(cd_driver_info *info, const scsi_read_cd *readCD)
}
static int
log2(uint32 x)
{
int y;
for (y = 31; y >= 0; --y) {
if (x == (1UL << y))
break;
}
return y;
}
static status_t
do_io(void* cookie, IOOperation* operation)
{
@@ -974,12 +960,6 @@ cd_set_capacity(cd_driver_info* info, uint64 capacity, uint32 blockSize)
TRACE("cd_set_capacity(info = %p, capacity = %Ld, blockSize = %ld)\n",
info, capacity, blockSize);
// get log2, if possible
uint32 blockShift = log2(blockSize);
if ((1UL << blockShift) != blockSize)
blockShift = 0;
if (info->block_size != blockSize) {
if (capacity == 0) {
// there is obviously no medium in the drive, don't try to update