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

This commit is contained in:
Dobrica Pavlinusic
2012-10-13 19:28:56 +02:00
committed by Qingping Hou
parent 24d4b82f2d
commit 08d26596b8

View File

@@ -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()
);