1
0
Fork 0

Remove pointless GCC_UNLIKELY from name shortener

This commit is contained in:
Patryk Obara 2020-02-04 22:37:08 +01:00 committed by Patryk Obara
parent d354727ac5
commit 079e1e1aa0

View file

@ -418,8 +418,10 @@ int DOS_Drive_Cache::CompareShortname(const char* compareName, const char* short
}
Bitu DOS_Drive_Cache::CreateShortNameID(CFileInfo* curDir, const char* name) {
std::vector<CFileInfo*>::size_type filelist_size = curDir->longNameList.size();
if (GCC_UNLIKELY(filelist_size<=0)) return 1; // shortener IDs start with 1
assert(curDir);
const auto filelist_size = curDir->longNameList.size();
if (filelist_size == 0)
return 1; // short name IDs start with 1
Bitu foundNr = 0;
Bits low = 0;