mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 22:57:50 +03:00
refactor: Remove MIN_SIZE_FOR_PROGRESS constant from ChapterHtmlSlimParser
This commit is contained in:
parent
aa2e6ad0b3
commit
43cd44c061
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user