Skip to content

Commit 57f99c9

Browse files
committed
Merge pull request #7 from titsuki/erase-unused-method
Erase unused compare method
2 parents 5cce3af + dcc4ea6 commit 57f99c9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/Algorithm/MinMaxHeap.pm6

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,6 @@ method clear() {
109109
@!nodes = ();
110110
}
111111

112-
method !compare($lhs, $rhs) returns Order:D {
113-
if ($!type ~~ Cool) {
114-
return $lhs minmaxheap-cmp $rhs;
115-
} else {
116-
return $lhs.compare-to($rhs);
117-
}
118-
}
119-
120112
method !bubble-up($index) {
121113
if (self!is-minlevel($index)) {
122114
if (self!has-parent($index) and (@!nodes[$index] minmaxheap-cmp @!nodes[self!find-parent($index)] == Order::More)) {

0 commit comments

Comments
 (0)