Skip to content

Commit

Permalink
lvdocview: don't compile (unused) wolutil related code
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre authored and poire-z committed Oct 26, 2023
1 parent f36e5a1 commit 156d095
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crengine/include/lvdocview.h
Original file line number Diff line number Diff line change
Expand Up @@ -795,12 +795,14 @@ class LVDocView : public CacheLoadingCallback
return (lUInt32)m_doc_props->getIntDef(DOC_PROP_FILE_CRC32, 0);
}

#if 0 // unused
/// export to WOL format
bool exportWolFile( const char * fname, bool flgGray, int levels );
/// export to WOL format
bool exportWolFile( const lChar32 * fname, bool flgGray, int levels );
/// export to WOL format
bool exportWolFile( LVStream * stream, bool flgGray, int levels );
#endif

/// get a stream for reading to document internal file (path inside the ZIP for EPUBs,
/// path relative to document directory for non-container documents like HTML)
Expand Down
10 changes: 9 additions & 1 deletion crengine/src/lvdocview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "../include/lvstsheet.h"
#include "../include/textlang.h"

#include "../include/wolutil.h"
// #include "../include/wolutil.h"
#include "../include/crtxtenc.h"
#include "../include/crtrace.h"
#include "../include/epubfmt.h"
Expand Down Expand Up @@ -798,6 +798,8 @@ void LVDocView::cachePageImage( int delta )
}
#endif

#if 0 // unused

bool LVDocView::exportWolFile(const char * fname, bool flgGray, int levels) {
LVStreamRef stream = LVOpenFileStream(fname, LVOM_WRITE);
if (!stream)
Expand All @@ -812,6 +814,8 @@ bool LVDocView::exportWolFile(const lChar32 * fname, bool flgGray, int levels) {
return exportWolFile(stream.get(), flgGray, levels);
}

#endif

void dumpSection(ldomNode * elem) {
lvRect rc;
elem->getAbsRect(rc);
Expand Down Expand Up @@ -1196,6 +1200,8 @@ void LVDocView::drawCoverTo(LVDrawBuf * drawBuf, lvRect & rc) {
//CRLog::trace("drawCoverTo() - done");
}

#if 0 // unused

/// export to WOL format
bool LVDocView::exportWolFile(LVStream * stream, bool flgGray, int levels) {
checkRender();
Expand Down Expand Up @@ -1333,6 +1339,8 @@ bool LVDocView::exportWolFile(LVStream * stream, bool flgGray, int levels) {
return true;
}

#endif

int LVDocView::GetFullHeight() {
LVLock lock(getMutex());
CHECK_RENDER("getFullHeight()");
Expand Down

0 comments on commit 156d095

Please sign in to comment.