loplugin:unusedmethods unused return value in include/helpcompiler
Change-Id: Ieebbd896bf1ad66cd1950456ca1600f0dd8cda83
This commit is contained in:
@@ -110,7 +110,7 @@ bool HelpIndexer::scanForFiles(OUString const & path) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool HelpIndexer::helpDocument(OUString const & fileName, Document *doc) {
|
||||
void HelpIndexer::helpDocument(OUString const & fileName, Document *doc) {
|
||||
// Add the help path as an indexed, untokenized field.
|
||||
|
||||
OUString path = "#HLP#" + d_module + "/" + fileName;
|
||||
@@ -128,8 +128,6 @@ bool HelpIndexer::helpDocument(OUString const & fileName, Document *doc) {
|
||||
// Add the content as a field.
|
||||
OUString contentPath = d_contentDir + "/" + sEscapedFileName;
|
||||
doc->add(*_CLNEW Field(_T("content"), helpFileReader(contentPath), Field::STORE_NO | Field::INDEX_TOKENIZED));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
lucene::util::Reader *HelpIndexer::helpFileReader(OUString const & path) {
|
||||
|
@@ -20,7 +20,7 @@ HelpSearch::HelpSearch(OUString const &indexDir)
|
||||
d_indexDir = OUStringToOString(ustrSystemPath, osl_getThreadTextEncoding());
|
||||
}
|
||||
|
||||
bool HelpSearch::query(OUString const &queryStr, bool captionOnly,
|
||||
void HelpSearch::query(OUString const &queryStr, bool captionOnly,
|
||||
std::vector<OUString> &rDocuments, std::vector<float> &rScores) {
|
||||
|
||||
lucene::index::IndexReader *reader = lucene::index::IndexReader::open(d_indexDir.getStr());
|
||||
@@ -51,8 +51,6 @@ bool HelpSearch::query(OUString const &queryStr, bool captionOnly,
|
||||
|
||||
reader->close();
|
||||
_CLDELETE(reader);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@@ -76,7 +76,7 @@ class L10N_DLLPUBLIC HelpIndexer {
|
||||
/**
|
||||
* Fill the Document with information on the given help file.
|
||||
*/
|
||||
bool helpDocument(OUString const & fileName, lucene::document::Document *doc);
|
||||
void helpDocument(OUString const & fileName, lucene::document::Document *doc);
|
||||
|
||||
/**
|
||||
* Create a reader for the given file, and create an "empty" reader in case the file doesn't exist.
|
||||
|
@@ -33,7 +33,7 @@ class L10N_DLLPUBLIC HelpSearch{
|
||||
* @param rDocuments Vector to write the paths of the found documents.
|
||||
* @param rScores Vector to write the scores to.
|
||||
*/
|
||||
bool query(OUString const &queryStr, bool captionOnly,
|
||||
void query(OUString const &queryStr, bool captionOnly,
|
||||
std::vector<OUString> &rDocuments, std::vector<float> &rScores);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user