mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Remove the unused or
/shiftLeft
methods from the Word64
class (PR 4938 follow-up)
These methods were introduced in *the first* commit of PR 4938, however they became unused in *the second* commit of that PR. Hence it seems that we've been accidentally shipping, a small amount of, unused code for over a decade.
This commit is contained in:
parent
67065e43f5
commit
0a2c176027
1 changed files with 0 additions and 15 deletions
|
@ -31,11 +31,6 @@ class Word64 {
|
|||
this.low ^= word.low;
|
||||
}
|
||||
|
||||
or(word) {
|
||||
this.high |= word.high;
|
||||
this.low |= word.low;
|
||||
}
|
||||
|
||||
shiftRight(places) {
|
||||
if (places >= 32) {
|
||||
this.low = (this.high >>> (places - 32)) | 0;
|
||||
|
@ -46,16 +41,6 @@ class Word64 {
|
|||
}
|
||||
}
|
||||
|
||||
shiftLeft(places) {
|
||||
if (places >= 32) {
|
||||
this.high = this.low << (places - 32);
|
||||
this.low = 0;
|
||||
} else {
|
||||
this.high = (this.high << places) | (this.low >>> (32 - places));
|
||||
this.low <<= places;
|
||||
}
|
||||
}
|
||||
|
||||
rotateRight(places) {
|
||||
let low, high;
|
||||
if (places & 32) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue