8000 Remove unused SlidingWindow::getRetryAfter · symfony/symfony@f7da2b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit f7da2b6

Browse files
authored
Remove unused SlidingWindow::getRetryAfter
1 parent 520bf28 commit f7da2b6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Symfony/Component/RateLimiter/Policy/SlidingWindow.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ public function getHitCount(): int
100100
return (int) floor($this->hitCountForLastWindow * (1 - $percentOfCurrentTimeFrame) + $this->hitCount);
101101
}
102102

103-
public function getRetryAfter(): \DateTimeImmutable
104-
{
105-
return \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $this->windowEndAt));
106-
}
107-
108103
public function calculateTimeForTokens(int $maxSize, int $tokens): int
109104
{
110105
$remaining = $maxSize - $this->getHitCount();

0 commit comments

Comments
 (0)
0