diff --git a/src/system/boot/loader/file_systems/fat/Directory.cpp b/src/system/boot/loader/file_systems/fat/Directory.cpp index 8aa1e9f440..b533b0096d 100644 --- a/src/system/boot/loader/file_systems/fat/Directory.cpp +++ b/src/system/boot/loader/file_systems/fat/Directory.cpp @@ -554,7 +554,6 @@ Directory::GetNextEntry(void *cookie, uint8 mask, uint8 match) TRACE(("FASFS::Directory::%s(, %02x, %02x)\n", __FUNCTION__, mask, match)); struct dir_cookie *c = (struct dir_cookie *)cookie; - bool hasLongName = false; bool longNameValid = false; do { @@ -574,7 +573,6 @@ Directory::GetNextEntry(void *cookie, uint8 mask, uint8 match) uint8* nameEntry = (uint8*)&c->entry; if ((*nameEntry & 0x40) != 0) { c->ResetName(); - hasLongName = true; longNameValid = true; } diff --git a/src/system/boot/loader/file_systems/fat/Stream.cpp b/src/system/boot/loader/file_systems/fat/Stream.cpp index 958c35f6e2..ccce51de58 100644 --- a/src/system/boot/loader/file_systems/fat/Stream.cpp +++ b/src/system/boot/loader/file_systems/fat/Stream.cpp @@ -126,10 +126,7 @@ Stream::_FindCluster(off_t pos, uint32& _cluster) } if (!found) { #if 1 - uint32 count = (fSize + fVolume.ClusterSize() - 1) / fVolume.ClusterSize(); cluster = fFirstCluster; - if (fSize == UINT32_MAX) // it's a directory, try a large enough value - count = 10; for (i = 0; i < index && fVolume.IsValidCluster(cluster); i++) { if (fVolume.IsLastCluster(cluster)) break; @@ -308,8 +305,6 @@ Stream::ReadAt(off_t pos, void *_buffer, size_t *_length, off_t *diskOffset) // read the following complete blocks using cached_read(), // the last partial block is read using the generic Cache class - bool partial = false; - while (length > 0) { // offset is the offset to the current pos in the block_run @@ -321,7 +316,6 @@ Stream::ReadAt(off_t pos, void *_buffer, size_t *_length, off_t *diskOffset) } memcpy(buffer + bytesRead, block, length); bytesRead += length; - partial = true; break; }