+ remove uselles debug message

pull/9/head
kelson42 14 years ago
parent 0f7c1d812d
commit 7cf557b44d

@ -232,7 +232,6 @@ static int accessHandlerCallback(void *cls,
suggestionCount++;
}
std::cout << suggestionCount << std::endl;
/* Try to get further suggestions with ucFirst(pattern) if maxSuggestionCount is not reached */
if (suggestionCount < 10) {
term = kiwix::ucFirst(term);
@ -249,7 +248,7 @@ static int accessHandlerCallback(void *cls,
if (suggestionCount < 10) {
term = kiwix::lcFirst(term);
reader->searchSuggestions(term, maxSuggestionCount);
while (reader->getNextSuggestion(suggestion) && suggestionCount < 10)
while (reader->getNextSuggestion(suggestion) && suggestionCount < 10) {
kiwix::stringReplacement(suggestion, "\"", "\\\"");
content += (content == "[" ? "" : ",");
content += "{\"value\":\"" + suggestion + "\",\"label\":\"" + suggestion + "\"}";

Loading…
Cancel
Save