chore: mini refactorings and dead code removal (#5512)

This commit is contained in:
nerix
2024-07-20 11:35:59 +02:00
committed by GitHub
parent deb4401036
commit b3c09b65d8
28 changed files with 65 additions and 506 deletions
+1 -3
View File
@@ -1,6 +1,5 @@
#pragma once
#include <algorithm>
#include <chrono>
namespace chatterino {
@@ -20,7 +19,6 @@ public:
**/
ExponentialBackoff(const std::chrono::milliseconds &start)
: start_(start)
, step_{1}
{
static_assert(maxSteps > 1, "maxSteps must be higher than 1");
}
@@ -54,7 +52,7 @@ public:
private:
const std::chrono::milliseconds start_;
unsigned step_;
unsigned step_ = 1;
};
} // namespace chatterino