refactor: Remove MIN_SIZE_FOR_PROGRESS constant from ChapterHtmlSlimParser

This commit is contained in:
Arthur Tazhitdinov 2026-01-26 14:27:12 +05:00
parent aa2e6ad0b3
commit 43cd44c061

View File

@ -15,11 +15,6 @@ class GfxRenderer;
#define MAX_WORD_SIZE 200
class ChapterHtmlSlimParser {
public:
// Minimum file size (in bytes) to show progress bar - smaller chapters don't benefit from it.
static constexpr size_t MIN_SIZE_FOR_PROGRESS = 50 * 1024; // 50KB
private:
const std::string& filepath;
GfxRenderer& renderer;
std::function<void(std::unique_ptr<Page>)> completePageFn;