project: Rev 202

This commit is contained in:
Owain van Brakel
2021-12-14 18:20:58 +01:00
parent e974585ce8
commit 7c7bf0901a
406 changed files with 39725 additions and 39842 deletions

View File

@@ -20,10 +20,10 @@ public class LinkDeque {
Link current;
public LinkDeque() {
this.sentinel = new Link(); // L: 6
this.sentinel.previous = this.sentinel; // L: 10
this.sentinel.next = this.sentinel; // L: 11
} // L: 12
this.sentinel = new Link();
this.sentinel.previous = this.sentinel;
this.sentinel.next = this.sentinel;
}
@ObfuscatedName("c")
@ObfuscatedSignature(
@@ -31,15 +31,15 @@ public class LinkDeque {
)
@Export("addFirst")
public void addFirst(Link var1) {
if (var1.next != null) { // L: 15
if (var1.next != null) {
var1.remove();
}
var1.next = this.sentinel.next; // L: 16
var1.previous = this.sentinel; // L: 17
var1.next.previous = var1; // L: 18
var1.previous.next = var1; // L: 19
} // L: 20
var1.next = this.sentinel.next;
var1.previous = this.sentinel;
var1.next.previous = var1;
var1.previous.next = var1;
}
@ObfuscatedName("b")
@ObfuscatedSignature(
@@ -47,13 +47,13 @@ public class LinkDeque {
)
@Export("last")
public Link last() {
Link var1 = this.sentinel.previous; // L: 24
if (var1 == this.sentinel) { // L: 25
this.current = null; // L: 26
return null; // L: 27
Link var1 = this.sentinel.previous;
if (var1 == this.sentinel) {
this.current = null;
return null;
} else {
this.current = var1.previous; // L: 29
return var1; // L: 30
this.current = var1.previous;
return var1;
}
}
@@ -63,13 +63,13 @@ public class LinkDeque {
)
@Export("previous")
public Link previous() {
Link var1 = this.current; // L: 35
if (var1 == this.sentinel) { // L: 36
this.current = null; // L: 37
return null; // L: 38
Link var1 = this.current;
if (var1 == this.sentinel) {
this.current = null;
return null;
} else {
this.current = var1.previous; // L: 40
return var1; // L: 41
this.current = var1.previous;
return var1;
}
}
}