summaryrefslogtreecommitdiff
path: root/helpcompiler
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-12 11:13:59 +0200
committerNoel Grandin <noel@peralex.com>2016-01-12 11:47:52 +0200
commite5bb67f08d4e2095affc5229e638535376ee66b4 (patch)
tree82c7adaf1481357efe37d0c0fb05d912e4faf4a9 /helpcompiler
parent5f3d9ba0cdd82ef1e8be9b80ae8054c24653e058 (diff)
loplugin:unusedmethods unused return value in include/helpcompiler
Change-Id: Ieebbd896bf1ad66cd1950456ca1600f0dd8cda83
Diffstat (limited to 'helpcompiler')
-rw-r--r--helpcompiler/source/HelpIndexer.cxx4
-rw-r--r--helpcompiler/source/HelpSearch.cxx4
2 files changed, 2 insertions, 6 deletions
diff --git a/helpcompiler/source/HelpIndexer.cxx b/helpcompiler/source/HelpIndexer.cxx
index 63cf85af5c0a..e6a26fce3d28 100644
--- a/helpcompiler/source/HelpIndexer.cxx
+++ b/helpcompiler/source/HelpIndexer.cxx
@@ -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) {
diff --git a/helpcompiler/source/HelpSearch.cxx b/helpcompiler/source/HelpSearch.cxx
index 603b11795ef8..96f121932240 100644
--- a/helpcompiler/source/HelpSearch.cxx
+++ b/helpcompiler/source/HelpSearch.cxx
@@ -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: */