1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:57:46 +00:00

LibPDF: Remove a pointless template specialization

We can just have two functions with actual names instead of specializing
on a bool template parameter.

No behavior change.
This commit is contained in:
Nico Weber 2023-07-10 15:40:18 -04:00 committed by Andreas Kling
parent deb0c53779
commit 92d2895057
2 changed files with 6 additions and 8 deletions

View file

@ -41,8 +41,8 @@ protected:
void decrypt(NonnullRefPtr<Object>, Reference reference) const override;
private:
template<bool is_revision_2>
ByteBuffer compute_user_password_value(ByteBuffer password_string);
ByteBuffer compute_user_password_value_v2(ByteBuffer password_string);
ByteBuffer compute_user_password_value_v3_and_newer(ByteBuffer password_string);
ByteBuffer compute_encryption_key(ByteBuffer password_string);