We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3241c85 commit 807f9c9Copy full SHA for 807f9c9
src/Interval.php
@@ -77,9 +77,4 @@ public function merge(Interval $otherInterval): Interval
77
max($this->getHigh(), $otherInterval->getHigh())
78
);
79
}
80
-
81
- public function getMax(): Interval
82
- {
83
- return $this;
84
- }
85
src/Node.php
@@ -125,7 +125,7 @@ public function copyPairFrom(Node $otherNode): void
125
126
public function updateMax(): void
127
{
128
- $this->max = $this->getPair()->getInterval()->getMax();
+ $this->max = $this->getPair()->getInterval();
129
130
if ($this->getRight()->max !== null) {
131
$this->max = $this->max->merge($this->getRight()->max);
0 commit comments