2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00

use CRLog::debug instead of printf, removed unused code

This commit is contained in:
Dobrica Pavlinusic 2012-10-13 19:28:56 +02:00
parent 6ab8e21375
commit 08f2c2e2f2

View File

@ -395,10 +395,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();
@ -423,7 +419,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()
);