Skip to content

Commit

Permalink
🎨 style: Run XO.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Apr 17, 2020
1 parent ca9351c commit 6c80a73
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/FibonacciHeap.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default class FibonacciHeap {
this.min = consolidate(this.compare, z.next);
}

z.next = z; // TODO remove this
z.next = z; // (Re)move this?
z.prev = z;
z.children = null;
z.degree = 0;
Expand Down
1 change: 1 addition & 0 deletions src/cut.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default function cut(x, y) {
y.children = x.next;
list_remove(x);
}

--y.degree;
x.parent = null;
x.mark = false;
Expand Down
3 changes: 1 addition & 2 deletions src/fib_heap_link.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import list_remove from './list_remove';
import list_insert from './list_insert';

/**
Expand All @@ -7,7 +6,7 @@ import list_insert from './list_insert';
* Precondition: y is in the root list of some heap.
*/
export default function fib_heap_link(y, x) {
//list_remove(y); // NOT NECESSARY SINCE y IS ALWAYS FROM ROOT LIST
// List_remove(y); // NOT NECESSARY SINCE y IS ALWAYS FROM ROOT LIST
// make y a child of x
if (x.children === null) {
y.next = y;
Expand Down
1 change: 0 additions & 1 deletion src/list_reset_parent.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ export default function list_reset_parent(children) {
next = x.next;
x.parent = null;
} while (next !== children);

}

0 comments on commit 6c80a73

Please sign in to comment.