mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
use CRLog::debug instead of printf, removed unused code
This commit is contained in:
committed by
Qingping Hou
parent
24d4b82f2d
commit
08d26596b8
6
cre.cpp
6
cre.cpp
@@ -415,10 +415,6 @@ static int getPageLinks(lua_State *L) {
|
||||
|
||||
lua_newtable(L); // all links
|
||||
|
||||
int pos = doc->text_view->GetPos();
|
||||
|
||||
printf("## pos=%d\n", pos);
|
||||
|
||||
ldomXRangeList links;
|
||||
ldomXRangeList & sel = doc->text_view->getDocument()->getSelections();
|
||||
|
||||
@@ -443,7 +439,7 @@ static int getPageLinks(lua_State *L) {
|
||||
lvPoint start_pt ( currSel.getStart().toPoint() );
|
||||
lvPoint end_pt ( currSel.getEnd().toPoint() );
|
||||
|
||||
printf("# link %d start %d %d end %d %d '%s' %s\n", i,
|
||||
CRLog::debug("# link %d start %d %d end %d %d '%s' %s\n", i,
|
||||
start_pt.x, start_pt.y, end_pt.x, end_pt.y,
|
||||
txt8.c_str(), link8.c_str()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user