Remove old GCC version workarounds

The minimum GCC version is now GCC 10.
This commit is contained in:
Minty-Meeo
2022-09-22 21:12:54 -05:00
committed by get
parent bab3229c98
commit e92f8fcbb4
4 changed files with 3 additions and 15 deletions

View File

@ -720,9 +720,6 @@ CertReader::CertReader(std::vector<u8>&& bytes) : SignedBlobReader(std::move(byt
if (!IsSignatureValid())
return;
// XXX: in old GCC versions, capturing 'this' does not work for some lambdas. The workaround
// is to not use auto for the parameter (even though the type is obvious).
// This can be dropped once we require GCC 7.
using CertStructInfo = std::tuple<SignatureType, PublicKeyType, size_t>;
static constexpr std::array<CertStructInfo, 4> types{{
{SignatureType::RSA4096, PublicKeyType::RSA2048, sizeof(CertRSA4096RSA2048)},