remove now unneeded Q_ASSERTs

Signed-off-by: Tayou <git@tayou.org>
This commit is contained in:
Tayou 2023-10-21 20:05:14 +02:00
parent 7d5206818b
commit 0fe3241df6
No known key found for this signature in database
GPG Key ID: 1E53F592B4557BC3
2 changed files with 0 additions and 4 deletions

View File

@ -235,8 +235,6 @@ bool processPackPNG(const ResourcePack& pack)
return false; // not processed correctly; https://github.com/PrismLauncher/PrismLauncher/issues/1740 return false; // not processed correctly; https://github.com/PrismLauncher/PrismLauncher/issues/1740
} }
case ResourceType::ZIPFILE: { case ResourceType::ZIPFILE: {
Q_ASSERT(pack.type() == ResourceType::ZIPFILE);
QuaZip zip(pack.fileinfo().filePath()); QuaZip zip(pack.fileinfo().filePath());
if (!zip.open(QuaZip::mdUnzip)) if (!zip.open(QuaZip::mdUnzip))
return false; // can't open zip file return false; // can't open zip file

View File

@ -189,8 +189,6 @@ bool processPackPNG(const TexturePack& pack)
return false; return false;
} }
case ResourceType::ZIPFILE: { case ResourceType::ZIPFILE: {
Q_ASSERT(pack.type() == ResourceType::ZIPFILE);
QuaZip zip(pack.fileinfo().filePath()); QuaZip zip(pack.fileinfo().filePath());
if (!zip.open(QuaZip::mdUnzip)) if (!zip.open(QuaZip::mdUnzip))
return false; // can't open zip file return false; // can't open zip file