mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Remove the unused PDF20.hash
method
This method was added in PR 4938, almost nine years ago, however it doesn't appear to ever have been used. Given the similarities between the `PDF17` and `PDF20` classes, and how they're used, if the `PDF20.hash` method was actually necessary you'd also expect a similiar method in the `PDF17` class.
This commit is contained in:
parent
5e0722e4c2
commit
74585c7c59
1 changed files with 0 additions and 4 deletions
|
@ -1321,10 +1321,6 @@ class PDF20 {
|
|||
return k.subarray(0, 32);
|
||||
}
|
||||
|
||||
hash(password, concatBytes, userBytes) {
|
||||
return this._hash(password, concatBytes, userBytes);
|
||||
}
|
||||
|
||||
checkOwnerPassword(password, ownerValidationSalt, userBytes, ownerPassword) {
|
||||
const hashData = new Uint8Array(password.length + 56);
|
||||
hashData.set(password, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue