libqpdf/Pl_AES_PDF.cc: remove duplicated if branch

Check for this->encrypt seems to be moved to plugged crypto
implementations, so it can be removed from Pl_AES_PDF.cc.
This commit is contained in:
Zdenek Dohnal 2021-04-29 11:50:42 +02:00 committed by Jay Berkenbilt
parent 36c7c20819
commit 16c19e9424
1 changed files with 1 additions and 8 deletions

View File

@ -209,14 +209,7 @@ Pl_AES_PDF::flush(bool strip_padding)
}
}
if (this->encrypt)
{
this->crypto->rijndael_process(this->inbuf, this->outbuf);
}
else
{
this->crypto->rijndael_process(this->inbuf, this->outbuf);
}
this->crypto->rijndael_process(this->inbuf, this->outbuf);
unsigned int bytes = this->buf_size;
if (strip_padding)
{